Add the MODSEC_2.5 define to 2.6 for compatibility.

This commit is contained in:
brectanus 2008-04-11 20:06:48 +00:00
parent 563a8e0f0c
commit fa3462f48f

View File

@ -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);