Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=51249
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 2 Jun 2011 16:11:16 +0000 (16:11 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 2 Jun 2011 16:11:16 +0000 (16:11 +0000)
Correct system property replacement code so properties of the form ${...}${...} can be used without error.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1130625 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/juli/ClassLoaderLogManager.java
webapps/docs/changelog.xml

index d7b9e93..248334f 100644 (file)
@@ -568,7 +568,7 @@ public class ClassLoaderLogManager extends LogManager {
         String result = str;
         int pos_start = result.indexOf("${");
         if (pos_start != -1) {
-            int pos_end = result.indexOf('}');
+            int pos_end = result.indexOf('}', pos_start);
             if (pos_end != -1) {
                 String propName = result.substring(pos_start + 2, pos_end);
                 String replacement = System.getProperty(propName);
index 5fbc07d..0ecac3e 100644 (file)
         response. Patch provided by Paco SoberĂ³n. (markt)
       </fix>
       <fix>
+        <bug>51249</bug>: Correct ClassLoaderLogManager system property
+        replacement code so properties of the form ${...}${...} can be used
+        without error. (markt) 
+      </fix>
+      <fix>
         <bug>51274</bug>: Add missing i18n strings in PersistentManagerBase.
         Patch provided by Eiji Takahashi. (markt)
       </fix>