summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/sp_execute.c2
-rw-r--r--src/sp_utils.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/sp_execute.c b/src/sp_execute.c
index bfe73c1..59f6884 100644
--- a/src/sp_execute.c
+++ b/src/sp_execute.c
@@ -37,7 +37,7 @@ static void construct_include_handler(const char * const filename) {
37 37
38 while (config) { 38 while (config) {
39 sp_disabled_function *config_node = (sp_disabled_function*)(config->data); 39 sp_disabled_function *config_node = (sp_disabled_function*)(config->data);
40 if (true == is_regexp_matching(config_node->regexp, filename)) { 40 if (true == sp_match_value(filename, config_node->value, config_node->regexp)) {
41 if (true == config_node->allow) { 41 if (true == config_node->allow) {
42 return; 42 return;
43 } 43 }
diff --git a/src/sp_utils.c b/src/sp_utils.c
index faf2e9a..8731164 100644
--- a/src/sp_utils.c
+++ b/src/sp_utils.c
@@ -235,7 +235,7 @@ char* sp_convert_to_string(zval* zv) {
235 235
236bool sp_match_value(const char* value, const char* to_match, const pcre* rx) { 236bool sp_match_value(const char* value, const char* to_match, const pcre* rx) {
237 if (to_match) { 237 if (to_match) {
238 if (0 == strcmp(value, to_match)) { 238 if (0 == strcmp(to_match, value)) {
239 return true; 239 return true;
240 } 240 }
241 } else if (rx) { 241 } else if (rx) {