You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ha...@apache.org on 2019/05/30 13:58:32 UTC

[royale-asjs] branch develop updated: Wrong encode method

This is an automated email from the ASF dual-hosted git repository.

harbs pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/develop by this push:
     new d4df666  Wrong encode method
d4df666 is described below

commit d4df66668b1386a8929b1b837007a8d0f9281640
Author: Harbs <ha...@in-tools.com>
AuthorDate: Thu May 30 16:58:21 2019 +0300

    Wrong encode method
---
 .../Network/src/main/royale/org/apache/royale/net/HTTPUtils.as        | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/frameworks/projects/Network/src/main/royale/org/apache/royale/net/HTTPUtils.as b/frameworks/projects/Network/src/main/royale/org/apache/royale/net/HTTPUtils.as
index 519f413..8a588ec 100644
--- a/frameworks/projects/Network/src/main/royale/org/apache/royale/net/HTTPUtils.as
+++ b/frameworks/projects/Network/src/main/royale/org/apache/royale/net/HTTPUtils.as
@@ -48,9 +48,9 @@ package org.apache.royale.net
             var x:String;
             for(x in data)
             {
-                b.push(encodeURI(x));
+                b.push(encodeURIComponent(x));
                 b.push("=");
-                b.push(encodeURI(data[x]));
+                b.push(encodeURIComponent(data[x]));
                 b.push("&");
             }
             if(b.length)