aboutsummaryrefslogtreecommitdiff
path: root/p/ext.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2022-08-10 09:36:54 +0200
committerGravatar GitHub <noreply@github.com> 2022-08-10 09:36:54 +0200
commite86c10e2f554ba60e95f745b3b062262b37c7188 (patch)
tree321c12bf9e253e9baec81df0d67f75df90a1dd8e /p/ext.php
parent82ac1d1e676f93b1567eba608c00c6edaf401a9e (diff)
Composer require php extensions (#4497)
#fix https://github.com/FreshRSS/FreshRSS/discussions/4494
Diffstat (limited to 'p/ext.php')
-rw-r--r--p/ext.php1
1 files changed, 1 insertions, 0 deletions
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;