From ac52086b44a63e16bf597f7fb226510a18f2f07e Mon Sep 17 00:00:00 2001 From: Martin Vierula Date: Mon, 12 Dec 2022 02:41:16 -0800 Subject: [PATCH] Distinguish PCRE vs. PCRE2 in startup version message --- apache2/mod_security2.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apache2/mod_security2.c b/apache2/mod_security2.c index c9e7d650..7786543a 100644 --- a/apache2/mod_security2.c +++ b/apache2/mod_security2.c @@ -126,7 +126,11 @@ static void version(apr_pool_t *mp) { #endif ap_log_error(APLOG_MARK, APLOG_NOTICE, 0, NULL, +#ifdef WITH_PCRE2 + "ModSecurity: PCRE2 compiled version=\"%s\"; " +#else "ModSecurity: PCRE compiled version=\"%s\"; " +#endif "loaded version=\"%s\"", pcre_vrs, pcre_loaded_vrs); if (strstr(pcre_loaded_vrs,pcre_vrs) == NULL) {