You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by gr...@apache.org on 2020/10/14 04:39:30 UTC
[royale-asjs] 02/03: Fix JS URLVariables
This is an automated email from the ASF dual-hosted git repository.
gregdove pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
commit 34df9021ba5234ba53f4d4627815273dd1bd9dbf
Author: greg-dove <gr...@gmail.com>
AuthorDate: Wed Oct 14 17:38:44 2020 +1300
Fix JS URLVariables
---
.../src/main/royale/org/apache/royale/net/utils/decodeQueryString.as | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/frameworks/projects/Network/src/main/royale/org/apache/royale/net/utils/decodeQueryString.as b/frameworks/projects/Network/src/main/royale/org/apache/royale/net/utils/decodeQueryString.as
index 49ecd98..b24b26f 100644
--- a/frameworks/projects/Network/src/main/royale/org/apache/royale/net/utils/decodeQueryString.as
+++ b/frameworks/projects/Network/src/main/royale/org/apache/royale/net/utils/decodeQueryString.as
@@ -47,7 +47,9 @@ package org.apache.royale.net.utils
}
}
var field:String = decodeURIComponent(pair[0]);
- var value:String = decodeURIComponent(pair[1]);
+ var value:String = pair[1];
+ //javascript does not decode '+' correctly
+ value = decodeURIComponent(value.replace(/\+/g, '%20'));
dest[field] = value;
}