forked from owasp-modsecurity/ModSecurity-nginx
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use the context to decide whether ModSecurity is enabled or not
Currently, the connector decides whether ModSecurity is enabled or not based on the configuration directive in the request's location conf. In case of an internal redirect and if ModSecurity is not enabled in the internal redirect's location conf, the log handler will not run and the transaction of the original request will not be logged. This commit extends the current behavior of the header and body filters, which assume that a null context means that ModSecurity is disabled, to the pre access and log handlers. As a result, the connector will always decide based on the original request whether ModSecurity is enabled or not.
- Loading branch information
1 parent
1f7e64c
commit 0652b90
Showing
4 changed files
with
6 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters