summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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) {