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

Fixed PCRE2 error message #3279

Merged
merged 2 commits into from
Oct 19, 2024

Conversation

marcstern
Copy link

In case an error occurs in PCRE2 compilation, the error message is not displayed.
Example: "Error creating rule: Error compiling pattern (offset 6): "

With the fix, the PCRE2 error message is retrieved:
Example: "Error creating rule: Error compiling pattern (offset 6): length of lookbehind assertion is not limited"

The code was mimicing PCRE behaviour; PCRE2 error message handling changed.

@marcstern marcstern added the 2.x Related to ModSecurity version 2.x label Oct 17, 2024
Copy link

Copy link
Member

@airween airween left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@airween airween merged commit dfcf31a into owasp-modsecurity:v2/master Oct 19, 2024
41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.x Related to ModSecurity version 2.x
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants