From e86c10e2f554ba60e95f745b3b062262b37c7188 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Wed, 10 Aug 2022 09:36:54 +0200 Subject: Composer require php extensions (#4497) #fix https://github.com/FreshRSS/FreshRSS/discussions/4494 --- p/ext.php | 1 + 1 file changed, 1 insertion(+) (limited to 'p') diff --git a/p/ext.php b/p/ext.php index aa6972d83..b4d32f7ed 100644 --- a/p/ext.php +++ b/p/ext.php @@ -60,6 +60,7 @@ function is_valid_path_extension($path, $extensionPath, $isStatic = true) { // Static files to serve must be under a `ext_dir/static/` directory. $path_relative_to_ext = substr($path, strlen($real_ext_path) + 1); + // @phpstan-ignore-next-line list(,$static,$file) = sscanf($path_relative_to_ext, '%[^/]/%[^/]/%s'); if (null === $file || 'static' !== $static) { return false; -- cgit v1.2.3