summarylogtreecommitdiffstats
path: root/format-security_bug.patch
blob: 9c82941e21fceee48968f8ad5e882b69a1bdc610 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff -ura modsecurity-v2.9.8/apache2/re.c modsecurity-v2.9.8.mod/apache2/re.c
--- modsecurity-v2.9.8/apache2/re.c	2024-09-03 14:52:31.000000000 +0200
+++ modsecurity-v2.9.8.mod/apache2/re.c	2024-10-04 14:54:34.520893551 +0200
@@ -472,8 +472,8 @@
 
 end:
     if (my_error_msg) {
-        if (msr) msr_log(msr, 9, my_error_msg);
-        else ap_log_error(APLOG_MARK, APLOG_INFO, 0, NULL, my_error_msg);
+        if (msr) msr_log(msr, 9, "%s", my_error_msg);
+        else ap_log_error(APLOG_MARK, APLOG_INFO, 0, NULL, "%s", my_error_msg);
     }
     if (target_list != NULL) free(target_list);
     if (replace != NULL) free(replace);