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

Add DebugLog message for bad pattern in rx operator #2723

Merged
merged 1 commit into from
Apr 21, 2022
Merged

Add DebugLog message for bad pattern in rx operator #2723

merged 1 commit into from
Apr 21, 2022

Conversation

martinhsv
Copy link
Contributor

Prior to this pull request, if an rx operator used a non-compiling pattern (e.g. "@rx a(b"), ModSecurity would silently accept and process it, but simply producing a 'no match' every time.

This PR adds a message in DebugLog (at level 3) indicating that there was a problem.

TODO: similar processing for the remaining operators that use the Regex class.

@martinhsv martinhsv merged commit 59531be into owasp-modsecurity:v3/master Apr 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant