diff options
| author | jvoisin | 2017-10-10 18:36:30 +0200 |
|---|---|---|
| committer | jvoisin | 2017-10-10 18:36:30 +0200 |
| commit | 994e197bcd6107f7af6279f3c897f05017ca22db (patch) | |
| tree | d6f84144056d52908a6ad2919241b3f9acbfa12c /src/sp_execute.c | |
| parent | ef1cb7661ed577039c7fa6caea7490330237f091 (diff) | |
.allow() is now working for require
Diffstat (limited to 'src/sp_execute.c')
| -rw-r--r-- | src/sp_execute.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sp_execute.c b/src/sp_execute.c index 419e56d..c8f7acf 100644 --- a/src/sp_execute.c +++ b/src/sp_execute.c | |||
| @@ -38,6 +38,9 @@ static void construct_include_handler(const char * const filename) { | |||
| 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 == is_regexp_matching(config_node->regexp, filename)) { |
| 41 | if (true == config_node->allow) { | ||
| 42 | return; | ||
| 43 | } | ||
| 41 | sp_log_disable("include", "inclusion path", filename, config_node); | 44 | sp_log_disable("include", "inclusion path", filename, config_node); |
| 42 | if (false == config_node->simulation) { | 45 | if (false == config_node->simulation) { |
| 43 | sp_terminate(); | 46 | sp_terminate(); |
