Skip to content

Commit

Permalink
Add missing static to FileUtil::extensionAllowsPhpExecution() defin…
Browse files Browse the repository at this point in the history
…ition

see #5593
  • Loading branch information
TimWolla committed Jul 28, 2023
1 parent c4f8608 commit 0a2f37a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wcfsetup/install/files/lib/util/FileUtil.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,7 @@ public static function getIconNameByFilename($filename)
* 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);
}
Expand Down

0 comments on commit 0a2f37a

Please sign in to comment.