8000 fix: PHP errors data file by azurit · Pull Request #3119 · coreruleset/coreruleset · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix: PHP errors data file #3119

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

Merged
merged 3 commits into from
Feb 13, 2023
Merged

fix: PHP errors data file #3119

merged 3 commits into from
Feb 13, 2023

Conversation

azurit
Copy link
Member
@azurit azurit commented Feb 6, 2023

Some of the patterns in php-errors.data are too common to be in PL1 so i'm moving them into PL2. I also removed a whitespace from the beginning of few patters as it's trimmer by modsec anyway.

 - moving few patterns into new file
- removing whitespace from the beginning of few patterns as it's trimmer by modsec anyway
@azurit azurit changed the title PHP errors FP fix fix: PHP errors FP fix Feb 6, 2023
@azurit
Copy link
Member Author
azurit commented Feb 6, 2023

@fzipi fzipi changed the title fix: PHP errors FP fix fix: PHP errors data file Feb 6, 2023
@dune73
Copy link
Member
dune73 commented Feb 10, 2023

Thank you. +1 on the trimming away of the whitespace prefix that really does not add much.

I am wondering if it is worth to add a new rule to avoid some FPs, but it's true that the FPs are quite obvious.

One option would be to simply forget about the signatures - just how important are they really, namely the "The function" has an extended variant - but if we assume they are important, than I think an additional PL2 rule is warranted.

Calling in the dev channel to see if we can get more opinions.

@azurit
Copy link
Member Author
azurit commented Feb 10, 2023

One option would be to simply forget about the signatures - just how important are they really, namely the "The function" has an extended variant - but if we assume they are important, than I think an additional PL2 rule is warranted.

I agree with this. Anyway, there are lots of error messages and i wasn't able to check them all. I'm sure there will be more FPs so the list of error messages for PL2 will be rising.

@theseion
Copy link
Contributor

Sounds good to me. If you think that there will be more messages to add to the PL2 list then it's probably worth it. I also agree that the whitespace doesn't add additional context. @azurit, did you mean that @pmFromFile trims whitespace at the beginning of lines anyway?

@azurit
Copy link
Member Author
azurit commented Feb 11, 2023

@theseion Yes, from the docs:
any whitespace trimmed from both the beginning and the end

@dune73
Copy link
Member
dune73 commented Feb 11, 2023

I confirm that behaviour.

@dune73
Copy link
Member
dune73 commented Feb 13, 2023

Time to merge than.

Thank you @azurit.

@dune73 dune73 merged commit 8565b7b into coreruleset:v4.0/dev Feb 13, 2023
@azurit azurit mentioned this pull request Mar 11, 2023
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.

3 participants
0