Skip to content

Commit ac52086

Browse files
committed
Distinguish PCRE vs. PCRE2 in startup version message
1 parent 583b465 commit ac52086

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

apache2/mod_security2.c

+4
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,11 @@ static void version(apr_pool_t *mp) {
126126
#endif
127127

128128
ap_log_error(APLOG_MARK, APLOG_NOTICE, 0, NULL,
129+
#ifdef WITH_PCRE2
130+
"ModSecurity: PCRE2 compiled version=\"%s\"; "
131+
#else
129132
"ModSecurity: PCRE compiled version=\"%s\"; "
133+
#endif
130134
"loaded version=\"%s\"", pcre_vrs, pcre_loaded_vrs);
131135

132136
if (strstr(pcre_loaded_vrs,pcre_vrs) == NULL) {

0 commit comments

Comments
 (0)