mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Run phase 5 prior to mod_log_config.
This commit is contained in:
@@ -1081,11 +1081,13 @@ static void register_hooks(apr_pool_t *mp) {
|
|||||||
"mod_ssl.c",
|
"mod_ssl.c",
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
static const char *postconfig_afterme_list[] = {
|
static const char *postconfig_afterme_list[] = {
|
||||||
"mod_fcgid.c",
|
"mod_fcgid.c",
|
||||||
"mod_cgid.c",
|
"mod_cgid.c",
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
static const char *postread_beforeme_list[] = {
|
static const char *postread_beforeme_list[] = {
|
||||||
"mod_rpaf.c",
|
"mod_rpaf.c",
|
||||||
"mod_rpaf-2.0.c",
|
"mod_rpaf-2.0.c",
|
||||||
@@ -1096,10 +1098,16 @@ static void register_hooks(apr_pool_t *mp) {
|
|||||||
"mod_unique_id.c",
|
"mod_unique_id.c",
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
static const char *postread_afterme_list[] = {
|
static const char *postread_afterme_list[] = {
|
||||||
"mod_log_forensic.c",
|
"mod_log_forensic.c",
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static const char *transaction_beforeme_list[] = {
|
||||||
|
"mod_log_config.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");
|
||||||
@@ -1132,7 +1140,7 @@ static void register_hooks(apr_pool_t *mp) {
|
|||||||
|
|
||||||
/* 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);
|
||||||
ap_hook_log_transaction(hook_log_transaction, NULL, NULL, APR_HOOK_MIDDLE);
|
ap_hook_log_transaction(hook_log_transaction, transaction_beforeme_list, NULL, APR_HOOK_MIDDLE);
|
||||||
|
|
||||||
/* Filter hooks */
|
/* Filter hooks */
|
||||||
ap_hook_insert_filter(hook_insert_filter, NULL, NULL, APR_HOOK_FIRST);
|
ap_hook_insert_filter(hook_insert_filter, NULL, NULL, APR_HOOK_FIRST);
|
||||||
|
Reference in New Issue
Block a user