Do not log 'allow' action as intercepted in the debug log.

This commit is contained in:
brectanus 2007-03-21 14:38:57 +00:00
parent d1ada359dd
commit 58afede3f3
2 changed files with 6 additions and 1 deletions

View File

@ -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. * Optimize regex execution to not capture unless 'capture' action used.
* Performance improvements in memory management. * Performance improvements in memory management.

View File

@ -61,11 +61,13 @@ int perform_interception(modsec_rec *msr) {
if (msr->was_intercepted == 0) { if (msr->was_intercepted == 0) {
msr_log(msr, 1, "Internal Error: Asked to intercept request but was_intercepted is zero"); msr_log(msr, 1, "Internal Error: Asked to intercept request but was_intercepted is zero");
msr->was_intercepted = 0;
return DECLINED; return DECLINED;
} }
if (msr->phase > 4) { if (msr->phase > 4) {
msr_log(msr, 1, "Internal Error: Asked to intercept request in phase %i.", msr->phase); msr_log(msr, 1, "Internal Error: Asked to intercept request in phase %i.", msr->phase);
msr->was_intercepted = 0;
return DECLINED; return DECLINED;
} }
@ -184,6 +186,7 @@ int perform_interception(modsec_rec *msr) {
case ACTION_ALLOW : case ACTION_ALLOW :
status = DECLINED; status = DECLINED;
message = apr_psprintf(msr->mp, "Access allowed%s.", phase_text); message = apr_psprintf(msr->mp, "Access allowed%s.", phase_text);
msr->was_intercepted = 0;
break; break;
default : default :