Author: mbrohl
Date: Mon Mar 12 21:43:48 2018
New Revision: 1826592
URL:
http://svn.apache.org/viewvc?rev=1826592&view=revLog:
Fixed: UtilCodec URL decoding breaks values with german umlauts.
(OFBIZ-10275)
Thanks Martin Becker for reporting and providing the patch.
Modified:
ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilCodec.java
Modified: ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilCodec.java
URL:
http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilCodec.java?rev=1826592&r1=1826591&r2=1826592&view=diff==============================================================================
--- ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilCodec.java (original)
+++ ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilCodec.java Mon Mar 12 21:43:48 2018
@@ -173,8 +173,8 @@ public class UtilCodec {
public String decode(String original) {
try {
- String canonical = canonicalize(original);
- return URLDecoder.decode(canonical, "UTF-8");
+ canonicalize(original);
+ return URLDecoder.decode(original, "UTF-8");
} catch (UnsupportedEncodingException ee) {
Debug.logError(ee, module);
return null;