mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-13 21:36:00 +03:00
Do not log 'allow' action as intercepted in the debug log.
This commit is contained in:
parent
d1ada359dd
commit
58afede3f3
4
CHANGES
4
CHANGES
@ -1,7 +1,9 @@
|
||||
|
||||
20 Mar 2007 - trunk
|
||||
21 Mar 2007 - trunk
|
||||
-------------------
|
||||
|
||||
* Do not log 'allow' action as intercepted in the debug log.
|
||||
|
||||
* Optimize regex execution to not capture unless 'capture' action used.
|
||||
|
||||
* Performance improvements in memory management.
|
||||
|
@ -61,11 +61,13 @@ int perform_interception(modsec_rec *msr) {
|
||||
|
||||
if (msr->was_intercepted == 0) {
|
||||
msr_log(msr, 1, "Internal Error: Asked to intercept request but was_intercepted is zero");
|
||||
msr->was_intercepted = 0;
|
||||
return DECLINED;
|
||||
}
|
||||
|
||||
if (msr->phase > 4) {
|
||||
msr_log(msr, 1, "Internal Error: Asked to intercept request in phase %i.", msr->phase);
|
||||
msr->was_intercepted = 0;
|
||||
return DECLINED;
|
||||
}
|
||||
|
||||
@ -184,6 +186,7 @@ int perform_interception(modsec_rec *msr) {
|
||||
case ACTION_ALLOW :
|
||||
status = DECLINED;
|
||||
message = apr_psprintf(msr->mp, "Access allowed%s.", phase_text);
|
||||
msr->was_intercepted = 0;
|
||||
break;
|
||||
|
||||
default :
|
||||
|
Loading…
x
Reference in New Issue
Block a user