Skip to content

Commit

Permalink
Perform a case-insensitive match in FileUtil::extensionAllowsPhpExecu…
Browse files Browse the repository at this point in the history
…tion()
  • Loading branch information
TimWolla committed Jul 28, 2023
1 parent 419dc66 commit 48860b8
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 @@ -746,7 +746,7 @@ public static function getIconNameByFilename($filename)
*/
public function extensionAllowsPhpExecution(string $extension): bool
{
return !!\preg_match('/^\.?(php[0-9]*|phtml)$/', $extension);
return !!\preg_match('/^\.?(php[0-9]*|phtml)$/i', $extension);
}

/**
Expand Down

0 comments on commit 48860b8

Please sign in to comment.