svn commit: r745025 - /ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilHttp.java

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

svn commit: r745025 - /ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilHttp.java

jleroux@apache.org
Author: jleroux
Date: Tue Feb 17 12:49:22 2009
New Revision: 745025

URL: http://svn.apache.org/viewvc?rev=745025&view=rev
Log:
Indicate clearly the status

Modified:
    ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilHttp.java

Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilHttp.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilHttp.java?rev=745025&r1=745024&r2=745025&view=diff
==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilHttp.java (original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilHttp.java Tue Feb 17 12:49:22 2009
@@ -245,8 +245,8 @@
     
     public static String canonicalizeParameter(String paramValue) {
         try {
-            if (paramValue.startsWith(":\\", 1)) { // This allows to use Windows paths from input fields
-                paramValue = paramValue.replace("\\", "/");
+            if (paramValue.startsWith(":\\", 1)) {  // FIXME : more a hack than anything else
+                paramValue = paramValue.replace("\\", "/"); // This allows to use Windows paths from input fields
             }
             String cannedStr = StringUtil.defaultWebEncoder.canonicalize(paramValue, StringUtil.esapiCanonicalizeStrict);
             if (Debug.verboseOn()) Debug.logVerbose("Canonicalized parameter with " + (cannedStr.equals(paramValue) ? "no " : "") + "change: original [" + paramValue + "] canned [" + cannedStr + "]", module);