diff options
Diffstat (limited to 'src/sp_config_keywords.c')
| -rw-r--r-- | src/sp_config_keywords.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sp_config_keywords.c b/src/sp_config_keywords.c index 9a9b608..f7be731 100644 --- a/src/sp_config_keywords.c +++ b/src/sp_config_keywords.c | |||
| @@ -321,7 +321,7 @@ SP_PARSE_FN(parse_disabled_functions) { | |||
| 321 | goto out; | 321 | goto out; |
| 322 | } | 322 | } |
| 323 | if (df->filename && (*ZSTR_VAL(df->filename) != '/') && | 323 | if (df->filename && (*ZSTR_VAL(df->filename) != '/') && |
| 324 | (0 != strncmp(ZSTR_VAL(df->filename), ZEND_STRL("phar://")))) { | 324 | (0 != strncmp(ZSTR_VAL(df->filename), "phar://", sizeof("phar://")))) { |
| 325 | sp_log_err("config", "Invalid configuration line: 'sp.disabled_functions': '.filename' must be an absolute path or a phar archive on line %zu", parsed_rule->lineno); | 325 | sp_log_err("config", "Invalid configuration line: 'sp.disabled_functions': '.filename' must be an absolute path or a phar archive on line %zu", parsed_rule->lineno); |
| 326 | goto out; | 326 | goto out; |
| 327 | } | 327 | } |
