Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validate regular expressions before saving #13

Closed
stklcode opened this issue May 19, 2018 · 0 comments
Closed

Validate regular expressions before saving #13

stklcode opened this issue May 19, 2018 · 0 comments
Assignees
Milestone

Comments

@stklcode
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant