diff options
| -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 e7ff3e6..6733503 100644 --- a/src/sp_config_keywords.c +++ b/src/sp_config_keywords.c | |||
| @@ -368,7 +368,7 @@ SP_PARSE_FN(parse_disabled_functions) { | |||
| 368 | goto out; | 368 | goto out; |
| 369 | } | 369 | } |
| 370 | if (df->filename && (*ZSTR_VAL(df->filename) != '/') && | 370 | if (df->filename && (*ZSTR_VAL(df->filename) != '/') && |
| 371 | (0 != strncmp(ZSTR_VAL(df->filename), "phar://", sizeof("phar://")))) { | 371 | (0 != strncmp(ZSTR_VAL(df->filename), "phar://", strlen("phar://")))) { |
| 372 | 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); | 372 | 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); |
| 373 | goto out; | 373 | goto out; |
| 374 | } | 374 | } |
