This is an automated email from the ASF dual-hosted git repository.
jleroux pushed a commit to branch trunk
in repository
https://gitbox.apache.org/repos/asf/ofbiz-framework.gitThe following commit(s) were added to refs/heads/trunk by this push:
new df82841 Fixed: Double encoded urls are not being decoded (OFBIZ-11822)
df82841 is described below
commit df828419be5c12e6f74ce932d2f0694d8e8b3e74
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 b577b94..de9ef6e 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
@@ -259,7 +259,7 @@ public class UtilCodec {
@Override
public String decode(String original) {
try {
- canonicalize(original);
+ original = canonicalize(original);
return URLDecoder.decode(original, "UTF-8");
} catch (UnsupportedEncodingException ee) {
Debug.logError(ee, MODULE);