mirror of
https://github.com/apache/cordova-plugin-file-transfer.git
synced 2026-06-05 00:00:35 +08:00
Found issue where : is accepted as a valid header, this is obviously wrong
This commit is contained in:
@@ -206,6 +206,7 @@ public class FileTransfer extends CordovaPlugin {
|
||||
String headerKey = iter.next().toString();
|
||||
headerKey = headerKey.replaceAll("\\n","")
|
||||
.replaceAll("\\s+","")
|
||||
.replaceAll(":", "")
|
||||
.replaceAll("[^\\x20-\\x7E]+", "");
|
||||
|
||||
JSONArray headerValues = headers.optJSONArray(headerKey);
|
||||
|
||||
Reference in New Issue
Block a user