From d696341663205b636aaa59fecae8758006e79147 Mon Sep 17 00:00:00 2001 From: brenosilva Date: Thu, 31 Mar 2011 13:40:36 +0000 Subject: [PATCH] ErrorDocuments and internal redirect hook is available for testing --- apache2/mod_security2.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/apache2/mod_security2.c b/apache2/mod_security2.c index d4025e2a..e8bacda7 100644 --- a/apache2/mod_security2.c +++ b/apache2/mod_security2.c @@ -1074,7 +1074,6 @@ static void hook_insert_filter(request_rec *r) { } // TODO: Holding off on this for now (needs more testing) -#if 0 /** * Invoked whenever Apache starts processing an error. A chance * to insert ourselves into the output filter chain. @@ -1116,7 +1115,6 @@ static void hook_insert_error_filter(request_rec *r) { } } } -#endif #if (!defined(NO_MODSEC_API)) /** @@ -1322,9 +1320,8 @@ static void register_hooks(apr_pool_t *mp) { /* Filter hooks */ ap_hook_insert_filter(hook_insert_filter, NULL, NULL, APR_HOOK_FIRST); -#if 0 + ap_hook_insert_error_filter(hook_insert_error_filter, NULL, NULL, APR_HOOK_FIRST); -#endif ap_register_input_filter("MODSECURITY_IN", input_filter, NULL, AP_FTYPE_CONTENT_SET);