summaryrefslogtreecommitdiff
path: root/src/sp_execute.c
diff options
context:
space:
mode:
authorjvoisin2017-10-13 16:14:00 +0200
committerjvoisin2017-10-13 16:14:00 +0200
commitd875912a0528931c0828edfe30c37c01b559b761 (patch)
tree005e7971980b26f4608cf4201b7ec9ddc1ecd498 /src/sp_execute.c
parenta081d0ddea4103c1772378870a005267a7bce332 (diff)
Maybe this will address #35
- We shouldn't assume that people are only using regexps - Make an internal function a bit more obvious
Diffstat (limited to 'src/sp_execute.c')
-rw-r--r--src/sp_execute.c2
1 files changed, 1 insertions, 1 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 }