Skip to content

Fix @rbl operator to correctly recognize known supported RBL providers #1524

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

Closed
wants to merge 1 commit into from
Closed

Fix @rbl operator to correctly recognize known supported RBL providers #1524

wants to merge 1 commit into from

Conversation

victorhora
Copy link
Contributor

The @rbl operator was found to not be working for some known providers including HttpBL as the current URL (dnsbl.httpbl.org) was not matching to be able to set the HttpBlKey or set the additional furtheInfo() data.

The previous string comparison was replaced with string::find to match with URLs under "httpbl.org" (and other predefined providers) domain as opposed to replacing the provider URL with the one in the API.

Matching the implementation of @rbl for ModSecurity v2 which uses std:strstr to scan the *string for the predefined RBL providers: https://github.com/SpiderLabs/ModSecurity/blob/v2/master/apache2/re_operators.c#L3670

@zimmerle
Copy link
Contributor

Merged ;) thanks.

@zimmerle zimmerle closed this Aug 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants