BUG/MAJOR: patterns: -i and -n are ignored for inlined patterns
These flags are only passed to pattern_read_from_file() which
loads the patterns from a file. The functions used to parse the
patterns from the current line do not provide the means to pass
the pattern flags so they're lost.
This issue was introduced in dev23 with the major pattern rework,
and was reported by Graham Morley. No backport is needed.
diff --git a/src/proto_http.c b/src/proto_http.c
index 90b73da..b7f6edf 100644
--- a/src/proto_http.c
+++ b/src/proto_http.c
@@ -3260,7 +3260,7 @@
/* perform update */
/* add entry only if it does not already exist */
if (pat_ref_find_elt(ref, key) == NULL)
- pat_ref_add(ref, key, NULL, NULL);
+ pat_ref_add(ref, key, NULL, 0, NULL);
break;
}
@@ -3295,7 +3295,7 @@
pat_ref_set(ref, key, value, NULL);
else
/* insert a new entry */
- pat_ref_add(ref, key, value, NULL);
+ pat_ref_add(ref, key, value, 0, NULL);
break;
}
@@ -3441,7 +3441,7 @@
/* perform update */
/* check if the entry already exists */
if (pat_ref_find_elt(ref, key) == NULL)
- pat_ref_add(ref, key, NULL, NULL);
+ pat_ref_add(ref, key, NULL, 0, NULL);
break;
}
@@ -3476,7 +3476,7 @@
pat_ref_set(ref, key, value, NULL);
else
/* insert a new entry */
- pat_ref_add(ref, key, value, NULL);
+ pat_ref_add(ref, key, value, 0, NULL);
break;
}