From 0a2f37a7ff269c9df7270b8774eda307728bd674 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Fri, 28 Jul 2023 15:01:05 +0200 Subject: [PATCH] Add missing `static` to FileUtil::extensionAllowsPhpExecution() definition see #5593 --- wcfsetup/install/files/lib/util/FileUtil.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/util/FileUtil.class.php b/wcfsetup/install/files/lib/util/FileUtil.class.php index 3a4410f1a2..9693c9c55a 100644 --- a/wcfsetup/install/files/lib/util/FileUtil.class.php +++ b/wcfsetup/install/files/lib/util/FileUtil.class.php @@ -744,7 +744,7 @@ final class FileUtil * PHP code and thus must not be used for untrusted files uploaded by * a user. */ - public function extensionAllowsPhpExecution(string $extension): bool + public static function extensionAllowsPhpExecution(string $extension): bool { return !!\preg_match('/^\.?(php[0-9]*|phtml)$/i', $extension); } -- 2.20.1