When using regular expressions, the filter strings are simply saved to database. This raises a warning from preg_match() when an expression is invalid or clashes with delimiters /.
These expresions should be validated before saving or - if possible - sanitized (analog to URL sanitization for non-regex referrer filter) to avoid such warnings.
When using regular expressions, the filter strings are simply saved to database. This raises a warning from
preg_match()
when an expression is invalid or clashes with delimiters/
.These expresions should be validated before saving or - if possible - sanitized (analog to URL sanitization for non-regex referrer filter) to avoid such warnings.