{
wordlist *W = NULL;
relist *temp = data;
+ int flags = REG_EXTENDED | REG_NOSUB;
while (temp != NULL) {
+ if (temp->flags != flags) {
+ if ((temp->flags®_ICASE) != 0) {
+ wordlistAdd(&W, "-i");
+ } else {
+ wordlistAdd(&W, "+i");
+ }
+ flags = temp->flags;
+ }
+
wordlistAdd(&W, temp->pattern);
temp = temp->next;
}
}
q = (relist *)memAllocate(MEM_RELIST);
+ q->flags = flags;
q->pattern = xstrdup(t);
q->regex = comp;
*(Tail) = q;
When using "file", the file should contain one item per line.
- By default, regular expressions are CASE-SENSITIVE. To make
- them case-insensitive, use the -i option.
+ By default, regular expressions are CASE-SENSITIVE.
+ To make them case-insensitive, use the -i option. To return case-sensitive
+ use the +i option between patterns, or make a new ACL line without -i.
Some acl types require suspending the current request in order
to access some external data source.