diff --git a/webroot/index.php b/webroot/index.php index 544b47972b..cde1e5ed0f 100644 --- a/webroot/index.php +++ b/webroot/index.php @@ -21,7 +21,7 @@ $url = parse_url(urldecode($_SERVER['REQUEST_URI'])); $file = __DIR__ . $url['path']; - if (strpos($url['path'], '..') === false && strpos($url['path'], '.') !== false && is_file($file)) { + if (!str_contains($url['path'], '..') && str_contains($url['path'], '.') && is_file($file)) { return false; } }