From 1602780f3c85ca127c77d28ae93a4e2a4eeae180 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Mon, 9 Oct 2017 11:54:31 +0200 Subject: Better hooking of language constructs (#26) * Vastly improve the support of language construct hooking--- src/sp_config.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/sp_config.h') diff --git a/src/sp_config.h b/src/sp_config.h index d5cd1dc..e51d6cc 100644 --- a/src/sp_config.h +++ b/src/sp_config.h @@ -105,8 +105,9 @@ typedef struct { } sp_config_disabled_functions; typedef struct { - sp_node_t *regexp_inclusion; // list of regexp for inclusion -} sp_config_regexp_inclusion; + sp_node_t *construct_include; // list of rules for `(include|require)_(once)?` + sp_node_t *construct_echo; +} sp_config_disabled_constructs; typedef struct { char *script; @@ -126,7 +127,7 @@ typedef struct { sp_config_auto_cookie_secure *config_auto_cookie_secure; sp_config_global_strict *config_global_strict; sp_config_disable_xxe *config_disable_xxe; - sp_config_regexp_inclusion *config_regexp_inclusion; + sp_config_disabled_constructs *config_disabled_constructs; } sp_config; typedef struct { -- cgit v1.3