Skip to content

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
@sonarqubecloud
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