summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAndré Malo <nd@apache.org>2004-01-28 22:30:19 +0000
committerAndré Malo <nd@apache.org>2004-01-28 22:30:19 +0000
commita9f556c22b91df99b2768401da426024107a4597 (patch)
tree038f31244e77ba2b8276f15228934cf0397e6cc7 /modules
parent3d60226a7987ae76951699bc16fd5bc687407bc1 (diff)
downloadhttpd-a9f556c22b91df99b2768401da426024107a4597.tar.gz
catch another edge case
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102437 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules')
-rw-r--r--modules/metadata/mod_setenvif.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/modules/metadata/mod_setenvif.c b/modules/metadata/mod_setenvif.c
index 9865cf7396..d4a562a8ce 100644
--- a/modules/metadata/mod_setenvif.c
+++ b/modules/metadata/mod_setenvif.c
@@ -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) {