From af6160b9c41f76e9fe8e9d145e299673a18d4433 Mon Sep 17 00:00:00 2001 From: brectanus Date: Wed, 30 May 2007 14:14:00 +0000 Subject: [PATCH] Fixed problem with subrequests not being intercepted. See #124. --- CHANGES | 2 ++ apache2/mod_security2.c | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/CHANGES b/CHANGES index 8dd56635..6828e833 100644 --- a/CHANGES +++ b/CHANGES @@ -2,6 +2,8 @@ ?? ??? 2007 - 2.2.0-trunk ------------------------- + * Fixed problem with subrequests not being intercepted (only logged). + * Add Solaris to the list of platforms not supporting the hidden visibility attribute. diff --git a/apache2/mod_security2.c b/apache2/mod_security2.c index 34b25771..95bd7a1b 100644 --- a/apache2/mod_security2.c +++ b/apache2/mod_security2.c @@ -562,6 +562,10 @@ static int hook_request_late(request_rec *r) { /* Has this phase been completed already? */ if (msr->phase_request_body_complete) { + if (msr->was_intercepted) { + msr_log(msr, 4, "Phase REQUEST_BODY subrequest already intercepted with code %u.", msr->intercept_actionset->intercept_status); + return msr->intercept_actionset->intercept_status; + } if (msr->txcfg->debuglog_level >= 4) { msr_log(msr, 4, "Phase REQUEST_BODY already complete, skipping."); }