From 994e197bcd6107f7af6279f3c897f05017ca22db Mon Sep 17 00:00:00 2001 From: jvoisin Date: Tue, 10 Oct 2017 18:36:30 +0200 Subject: .allow() is now working for require --- src/sp_execute.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/sp_execute.c') 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) { while (config) { sp_disabled_function *config_node = (sp_disabled_function*)(config->data); if (true == is_regexp_matching(config_node->regexp, filename)) { + if (true == config_node->allow) { + return; + } sp_log_disable("include", "inclusion path", filename, config_node); if (false == config_node->simulation) { sp_terminate(); -- cgit v1.3