backslash will be skipped and not recognized as an escape character.
That way, <!--#if expr="\)"--> or the like won't work correctly.
Fix it now.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101093
13f79535-47bb-0310-9956-
ffa450edef68
[Remove entries to the current 2.0 section below, when backported]
+ *) Fix mod_include's expression parser to recognize strings correctly
+ even if they start with an escaped token. [André Malo]
+
*) Major overhaul of mod_include's filter parser. The new parser code
is expected to be more robust and should catch all of the edge cases
that were not handled by the previous one. This includes a binary
return 0;
}
- /*
- * It's a string or regex token
+ /* It's a string or regex token
+ * Now search for the next token, which finishes this string
*/
- token->value = unmatched ? *parse : p;
-
- /* Now search for the next token, which finishes this string */
shift = 0;
- p = *parse;
+ p = *parse = token->value = unmatched ? *parse : p;
+
for (; **parse; p = ++*parse) {
if (**parse == '\\') {
if (!*(++*parse)) {