tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r647316 - /tomcat/trunk/java/org/apache/catalina/ssi/SSIProcessor.java
Date Fri, 11 Apr 2008 21:26:02 GMT
Author: markt
Date: Fri Apr 11 14:25:59 2008
New Revision: 647316

URL: http://svn.apache.org/viewvc?rev=647316&view=rev
Log:
Fix bug44391. Handling of escaped characters was incorrect.

Modified:
    tomcat/trunk/java/org/apache/catalina/ssi/SSIProcessor.java

Modified: tomcat/trunk/java/org/apache/catalina/ssi/SSIProcessor.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/ssi/SSIProcessor.java?rev=647316&r1=647315&r2=647316&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/ssi/SSIProcessor.java (original)
+++ tomcat/trunk/java/org/apache/catalina/ssi/SSIProcessor.java Fri Apr 11 14:25:59 2008
@@ -209,11 +209,10 @@
                     // Need to skip escaped characters
                     if (c == '\\' && !escaped) {
                         escaped = true;
-                        bIdx++;
                         continue;
                     }
+                    if (c == '"' && !escaped) quotes++;
                     escaped = false;
-                    if (c == '"') quotes++;
                 }
             }
         }



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


Mime
View raw message