summaryrefslogtreecommitdiff
path: root/src/sp_ini.c
diff options
context:
space:
mode:
authorBen Fuhrmannek2022-02-05 12:22:13 +0100
committerBen Fuhrmannek2022-02-05 12:22:13 +0100
commit323f818a6ce33d021bc0a6d34064598917e68c91 (patch)
tree474200051e6e908489ea8d23a58fc60464ea9492 /src/sp_ini.c
parentdece0e45b7f66cc51bcbe590240eab3f82da900c (diff)
introduced sp_regexp / store original regex
Diffstat (limited to 'src/sp_ini.c')
-rw-r--r--src/sp_ini.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sp_ini.c b/src/sp_ini.c
index 62bd181..7fec297 100644
--- a/src/sp_ini.c
+++ b/src/sp_ini.c
@@ -66,7 +66,7 @@ static bool /* success */ sp_ini_check(zend_string *varname, zend_string *new_va
66 } 66 }
67 67
68 if (entry->regexp) { 68 if (entry->regexp) {
69 if (!sp_is_regexp_matching_len(entry->regexp, ZSTR_VAL(new_value), ZSTR_LEN(new_value))) { 69 if (!sp_is_regexp_matching_zstr(entry->regexp, new_value)) {
70 sp_log_ini_check_violation("%s", (entry->msg ? ZSTR_VAL(entry->msg) : "INI value does not match regex")); 70 sp_log_ini_check_violation("%s", (entry->msg ? ZSTR_VAL(entry->msg) : "INI value does not match regex"));
71 return simulation; 71 return simulation;
72 } 72 }