diff options
| author | jvoisin | 2018-01-10 14:56:33 +0100 |
|---|---|---|
| committer | GitHub | 2018-01-10 14:56:33 +0100 |
| commit | ad6b3e723fe26bf1a3a573aed776960916d35499 (patch) | |
| tree | eec9e15028f4529d776489d273bf9699333aa987 /src/sp_config.h | |
| parent | b6e5bc4557cca3abbcfd179e7143ea54b9844e49 (diff) | |
Eval whitelist
Implement whitelist in eval
Diffstat (limited to 'src/sp_config.h')
| -rw-r--r-- | src/sp_config.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sp_config.h b/src/sp_config.h index a4a4f10..25963f1 100644 --- a/src/sp_config.h +++ b/src/sp_config.h | |||
| @@ -177,7 +177,8 @@ typedef struct { | |||
| 177 | #define SP_TOKEN_UNSERIALIZE_HMAC ".unserialize_hmac" | 177 | #define SP_TOKEN_UNSERIALIZE_HMAC ".unserialize_hmac" |
| 178 | #define SP_TOKEN_UPLOAD_VALIDATION ".upload_validation" | 178 | #define SP_TOKEN_UPLOAD_VALIDATION ".upload_validation" |
| 179 | #define SP_TOKEN_DISABLE_XXE ".disable_xxe" | 179 | #define SP_TOKEN_DISABLE_XXE ".disable_xxe" |
| 180 | #define SP_TOKEN_EVAL ".eval_filter" | 180 | #define SP_TOKEN_EVAL_BLACKLIST ".eval_blacklist" |
| 181 | #define SP_TOKEN_EVAL_WHITELIST ".eval_whitelist" | ||
| 181 | 182 | ||
| 182 | // common tokens | 183 | // common tokens |
| 183 | #define SP_TOKEN_ENABLE ".enable(" | 184 | #define SP_TOKEN_ENABLE ".enable(" |
| @@ -231,8 +232,7 @@ typedef struct { | |||
| 231 | #define SP_TOKEN_UPLOAD_SCRIPT ".script(" | 232 | #define SP_TOKEN_UPLOAD_SCRIPT ".script(" |
| 232 | 233 | ||
| 233 | // eval blacklist | 234 | // eval blacklist |
| 234 | #define SP_TOKEN_EVAL_BLACKLIST ".blacklist(" | 235 | #define SP_TOKEN_EVAL_LIST ".list(" |
| 235 | #define SP_TOKEN_EVAL_WHITELIST ".whitelist(" | ||
| 236 | 236 | ||
| 237 | int sp_parse_config(const char *); | 237 | int sp_parse_config(const char *); |
| 238 | int parse_array(sp_disabled_function *); | 238 | int parse_array(sp_disabled_function *); |
