[ofbiz-framework] branch release17.12 updated: Fixed: Double encoded urls are not being decoded (OFBIZ-11822)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[ofbiz-framework] branch release17.12 updated: Fixed: Double encoded urls are not being decoded (OFBIZ-11822)

jleroux@apache.org
This is an automated email from the ASF dual-hosted git repository.

jleroux pushed a commit to branch release17.12
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git


The following commit(s) were added to refs/heads/release17.12 by this push:
     new a603349  Fixed: Double encoded urls are not being decoded (OFBIZ-11822)
a603349 is described below

commit a603349b55f67d189ac8a3b0ff4e09c181f85711
Author: Jacques Le Roux <[hidden email]>
AuthorDate: Mon Jun 15 13:25:35 2020 +0200

    Fixed: Double encoded urls are not being decoded (OFBIZ-11822)
   
    This was broken by OFBIZ-10275
   
    Thanks: Alex Bodnaru
---
 framework/base/src/main/java/org/apache/ofbiz/base/util/UtilCodec.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilCodec.java b/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilCodec.java
index 4e3d5b9..b01ec92 100644
--- a/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilCodec.java
+++ b/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilCodec.java
@@ -240,7 +240,7 @@ public class UtilCodec {
 
         public String decode(String original) {
             try {
-                canonicalize(original);
+                original = canonicalize(original);
                 return URLDecoder.decode(original, "UTF-8");
             } catch (UnsupportedEncodingException ee) {
                 Debug.logError(ee, module);