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:28 UTC
[royale-asjs] branch develop updated (d42f747 -> 5b74d9c)
This is an automated email from the ASF dual-hosted git repository.
gregdove pushed a change to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git.
from d42f747 Revert "Revert "Revert "a temp try to see if emails comes from b.a.o. will be reverted soon"""
new aa01bdc Add failing JS test for URLVariables
new 34df902 Fix JS URLVariables
new 5b74d9c Merge branch 'develop' of https://github.com/apache/royale-asjs into develop
The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.../main/royale/org/apache/royale/net/utils/decodeQueryString.as | 4 +++-
.../test/royale/flexUnitTests/network/URLVariablesTesterTest.as | 8 ++++++++
2 files changed, 11 insertions(+), 1 deletion(-)
[royale-asjs] 03/03: Merge branch 'develop' of
https://github.com/apache/royale-asjs into develop
Posted by gr...@apache.org.
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 5b74d9c3300252a285de425f369eeb6d1d85d0ab
Merge: 34df902 d42f747
Author: greg-dove <gr...@gmail.com>
AuthorDate: Wed Oct 14 17:39:08 2020 +1300
Merge branch 'develop' of https://github.com/apache/royale-asjs into develop
[royale-asjs] 01/03: Add failing JS test for URLVariables
Posted by gr...@apache.org.
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 aa01bdcc9f985522e3d2d182735a5295aaa855af
Author: greg-dove <gr...@gmail.com>
AuthorDate: Wed Oct 14 17:37:45 2020 +1300
Add failing JS test for URLVariables
---
.../test/royale/flexUnitTests/network/URLVariablesTesterTest.as | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/frameworks/projects/Network/src/test/royale/flexUnitTests/network/URLVariablesTesterTest.as b/frameworks/projects/Network/src/test/royale/flexUnitTests/network/URLVariablesTesterTest.as
index ef6bd26..40aceb3 100644
--- a/frameworks/projects/Network/src/test/royale/flexUnitTests/network/URLVariablesTesterTest.as
+++ b/frameworks/projects/Network/src/test/royale/flexUnitTests/network/URLVariablesTesterTest.as
@@ -96,6 +96,14 @@ package flexUnitTests.network
assertEquals(tester[''], 'EmptyStringValue', 'unexpected decoded value');
}
+
+ [Test]
+ public function testDecodingWithPlus():void
+ {
+ var tester:URLVariables = new URLVariables('test1=test1Value+with+spaces');
+ assertEquals(tester['test1'], 'test1Value with spaces', 'unexpected decoded value');
+
+ }
[royale-asjs] 02/03: Fix JS URLVariables
Posted by gr...@apache.org.
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;
}