mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +03:00
Add the MODSEC_2.5 define to 2.6 for compatibility.
This commit is contained in:
parent
563a8e0f0c
commit
fa3462f48f
@ -1068,6 +1068,9 @@ static void register_hooks(apr_pool_t *mp) {
|
||||
NULL
|
||||
};
|
||||
|
||||
/* Add the MODSEC_2.x compatibility defines */
|
||||
*(char **)apr_array_push(ap_server_config_defines) = apr_pstrdup(mp, "MODSEC_2.5");
|
||||
|
||||
/* Add the MODSEC_a.b define */
|
||||
*(char **)apr_array_push(ap_server_config_defines) = apr_psprintf(mp, "MODSEC_%s.%s", MODSEC_VERSION_MAJOR, MODSEC_VERSION_MINOR);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user