mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-15 23:55:03 +03:00
ErrorDocuments and internal redirect hook is available for testing
This commit is contained in:
parent
53b0276b08
commit
d696341663
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user