Distinguish PCRE vs. PCRE2 in startup version message

This commit is contained in:
Martin Vierula
2022-12-12 02:41:16 -08:00
parent 583b465fdb
commit ac52086b44

View File

@@ -126,7 +126,11 @@ static void version(apr_pool_t *mp) {
#endif #endif
ap_log_error(APLOG_MARK, APLOG_NOTICE, 0, NULL, ap_log_error(APLOG_MARK, APLOG_NOTICE, 0, NULL,
#ifdef WITH_PCRE2
"ModSecurity: PCRE2 compiled version=\"%s\"; "
#else
"ModSecurity: PCRE compiled version=\"%s\"; " "ModSecurity: PCRE compiled version=\"%s\"; "
#endif
"loaded version=\"%s\"", pcre_vrs, pcre_loaded_vrs); "loaded version=\"%s\"", pcre_vrs, pcre_loaded_vrs);
if (strstr(pcre_loaded_vrs,pcre_vrs) == NULL) { if (strstr(pcre_loaded_vrs,pcre_vrs) == NULL) {