mirror of
https://github.com/linuxserver/Heimdall.git
synced 2026-03-02 08:23:35 +09:00
Compare commits
1 Commits
v2.6.3
...
bugfix/all
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
be59ac794e |
@@ -117,7 +117,7 @@ function className($name)
|
||||
*/
|
||||
function isImage(string $file, string $extension): bool
|
||||
{
|
||||
$allowedExtensions = ['jpg', 'jpeg', 'png', 'bmp', 'gif', 'svg', 'webp'];
|
||||
$allowedExtensions = ['jpg', 'jpeg', 'png', 'bmp', 'gif', 'svg', 'webp', 'ico'];
|
||||
|
||||
if (!in_array($extension, $allowedExtensions)) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user