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 71e027d Documented: Error while decoding url parameters with percent character (OFBIZ-12014)
71e027d is described below
commit 71e027d3a1729eb72b2ff2478e5143114ea53e1e
Author: Jacques Le Roux <
[hidden email]>
AuthorDate: Mon Sep 14 11:53:02 2020 +0200
Documented: Error while decoding url parameters with percent character (OFBIZ-12014)
Just a comment to clarify
---
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 50c358a..adc5e44b 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);
+ canonicalize(original); // This is only used to show warning/s in log in case of multiple encoding/s. See OFBIZ-12014 for more
return URLDecoder.decode(original, "UTF-8");
} catch (UnsupportedEncodingException ee) {
Debug.logError(ee, MODULE);