You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by bo...@apache.org on 2015/09/08 20:19:42 UTC
cordova-plugin-file-transfer git commit: Found issue where : is
accepted as a valid header, this is obviously wrong
Repository: cordova-plugin-file-transfer
Updated Branches:
refs/heads/master 2b3172370 -> 8fcdb1aa3
Found issue where : is accepted as a valid header, this is obviously wrong
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/commit/8fcdb1aa
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/tree/8fcdb1aa
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/diff/8fcdb1aa
Branch: refs/heads/master
Commit: 8fcdb1aa3deb892691b44bdf57e8d780da09e2a4
Parents: 2b31723
Author: Joe Bowser <bo...@apache.org>
Authored: Tue Sep 8 11:19:34 2015 -0700
Committer: Joe Bowser <bo...@apache.org>
Committed: Tue Sep 8 11:19:34 2015 -0700
----------------------------------------------------------------------
src/android/FileTransfer.java | 1 +
1 file changed, 1 insertion(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/blob/8fcdb1aa/src/android/FileTransfer.java
----------------------------------------------------------------------
diff --git a/src/android/FileTransfer.java b/src/android/FileTransfer.java
index 2aa4008..22a1ed7 100644
--- a/src/android/FileTransfer.java
+++ b/src/android/FileTransfer.java
@@ -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);
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org