You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2016/03/05 17:01:57 UTC

svn commit: r1733734 - /tomcat/trunk/java/org/apache/catalina/core/ApplicationPart.java

Author: markt
Date: Sat Mar  5 16:01:57 2016
New Revision: 1733734

URL: http://svn.apache.org/viewvc?rev=1733734&view=rev
Log:
Correct regex. The actual regex is "\\" and since '\' needs to be escaped the code needs to use "\\\\"

Modified:
    tomcat/trunk/java/org/apache/catalina/core/ApplicationPart.java

Modified: tomcat/trunk/java/org/apache/catalina/core/ApplicationPart.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/core/ApplicationPart.java?rev=1733734&r1=1733733&r2=1733734&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/core/ApplicationPart.java (original)
+++ tomcat/trunk/java/org/apache/catalina/core/ApplicationPart.java Sat Mar  5 16:01:57 2016
@@ -148,7 +148,7 @@ public class ApplicationPart implements
                         // there won't be any '\' characters. If it is a
                         // quoted-string it can be dequoted by removing the '\'
                         // characters.
-                        fileName = fileName.trim().replaceAll("\\", "");
+                        fileName = fileName.trim().replaceAll("\\\\", "");
                     } else {
                         // Even if there is no value, the parameter is present,
                         // so we return an empty file name rather than no file



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org