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 <[email protected]>
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;
         }
     

Reply via email to