diff options
Diffstat (limited to 'src/sp_config_keywords.c')
| -rw-r--r-- | src/sp_config_keywords.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sp_config_keywords.c b/src/sp_config_keywords.c index 5e31c41..29f1bfc 100644 --- a/src/sp_config_keywords.c +++ b/src/sp_config_keywords.c | |||
| @@ -160,7 +160,7 @@ int parse_disabled_functions(char *line) { | |||
| 160 | {parse_empty, SP_TOKEN_DROP, &(df->drop)}, | 160 | {parse_empty, SP_TOKEN_DROP, &(df->drop)}, |
| 161 | {parse_str, SP_TOKEN_HASH, &(df->hash)}, | 161 | {parse_str, SP_TOKEN_HASH, &(df->hash)}, |
| 162 | {parse_str, SP_TOKEN_PARAM, &(df->param)}, | 162 | {parse_str, SP_TOKEN_PARAM, &(df->param)}, |
| 163 | {parse_regexp, SP_TOKEN_VALUE_REGEXP, &(df->regexp)}, | 163 | {parse_regexp, SP_TOKEN_VALUE_REGEXP, &(df->value_r)}, |
| 164 | {parse_str, SP_TOKEN_VALUE, &(df->value)}, | 164 | {parse_str, SP_TOKEN_VALUE, &(df->value)}, |
| 165 | {parse_regexp, SP_TOKEN_PARAM_REGEXP, &(df->r_param)}, | 165 | {parse_regexp, SP_TOKEN_PARAM_REGEXP, &(df->r_param)}, |
| 166 | {parse_php_type, SP_TOKEN_PARAM_TYPE, &(df->param_type)}, | 166 | {parse_php_type, SP_TOKEN_PARAM_TYPE, &(df->param_type)}, |
| @@ -183,7 +183,7 @@ int parse_disabled_functions(char *line) { | |||
| 183 | df->enable = true; | 183 | df->enable = true; |
| 184 | } | 184 | } |
| 185 | 185 | ||
| 186 | if (df->value && df->regexp) { | 186 | if (df->value && df->value_r) { |
| 187 | sp_log_err("config", | 187 | sp_log_err("config", |
| 188 | "Invalid configuration line: 'sp.disabled_functions%s':" | 188 | "Invalid configuration line: 'sp.disabled_functions%s':" |
| 189 | "'.value' and '.regexp' are mutually exclusives on line %zu.", | 189 | "'.value' and '.regexp' are mutually exclusives on line %zu.", |
