Fix error in r1041356
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 2 Dec 2010 16:07:10 +0000 (16:07 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 2 Dec 2010 16:07:10 +0000 (16:07 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1041425 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/util/ContextName.java

index 8c957fd..9da07be 100644 (file)
@@ -50,7 +50,7 @@ public final class ContextName {
         }
         
         // Replace any remaining /
-        tmp1.replaceAll("/", FWD_SLASH_REPLACEMENT);
+        tmp1 = tmp1.replaceAll("/", FWD_SLASH_REPLACEMENT);
         
         // Insert the ROOT name if required
         if (tmp1.startsWith(VERSION_MARKER) || "".equals(tmp1)) {