mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
MODSEC-226
This commit is contained in:
@@ -1466,6 +1466,11 @@ static void register_hooks(apr_pool_t *mp) {
|
|||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static const char *const fixups_beforeme_list[] = {
|
||||||
|
"mod_env.c",
|
||||||
|
NULL
|
||||||
|
};
|
||||||
|
|
||||||
/* Add the MODSEC_2.x compatibility defines */
|
/* Add the MODSEC_2.x compatibility defines */
|
||||||
*(char **)apr_array_push(ap_server_config_defines) = apr_pstrdup(mp, "MODSEC_2.5");
|
*(char **)apr_array_push(ap_server_config_defines) = apr_pstrdup(mp, "MODSEC_2.5");
|
||||||
|
|
||||||
@@ -1501,7 +1506,7 @@ static void register_hooks(apr_pool_t *mp) {
|
|||||||
ap_hook_post_read_request(hook_request_early,
|
ap_hook_post_read_request(hook_request_early,
|
||||||
postread_beforeme_list, postread_afterme_list, APR_HOOK_REALLY_FIRST);
|
postread_beforeme_list, postread_afterme_list, APR_HOOK_REALLY_FIRST);
|
||||||
|
|
||||||
ap_hook_fixups(hook_request_late, NULL, NULL, APR_HOOK_REALLY_FIRST);
|
ap_hook_fixups(hook_request_late, fixups_beforeme_list, NULL, APR_HOOK_REALLY_FIRST);
|
||||||
|
|
||||||
/* Logging */
|
/* Logging */
|
||||||
ap_hook_error_log(hook_error_log, NULL, NULL, APR_HOOK_MIDDLE);
|
ap_hook_error_log(hook_error_log, NULL, NULL, APR_HOOK_MIDDLE);
|
||||||
|
Reference in New Issue
Block a user