]> granicus.if.org Git - apache/commitdiff
catch another edge case
authorAndré Malo <nd@apache.org>
Wed, 28 Jan 2004 22:30:19 +0000 (22:30 +0000)
committerAndré Malo <nd@apache.org>
Wed, 28 Jan 2004 22:30:19 +0000 (22:30 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102437 13f79535-47bb-0310-9956-ffa450edef68

modules/metadata/mod_setenvif.c

index 9865cf73969435f5866f2dacbc37b144bf589838..d4a562a8ce1f35d751b57775fa8d8cf748f400f6 100644 (file)
@@ -259,8 +259,13 @@ static const char *non_regex_pattern(apr_pool_t *p, const char *s)
             in_escape = 0;
             break;
         case '\\':
-            in_escape = 1;
-            escapes_found = 1;
+            if (!in_escape) {
+                in_escape = 1;
+                escapes_found = 1;
+            }
+            else {
+                in_escape = 0;
+            }
             break;
         default:
             if (in_escape) {