This commit is contained in:
Shish
2020-01-27 22:22:07 +00:00
parent 95f4474b72
commit 9ac8246fa2
2 changed files with 3 additions and 3 deletions

View File

@ -70,7 +70,7 @@ class PixelFileHandler extends DataHandlerExtension
return false;
}
$info = getimagesize($tmpname);
if (is_null($info)) {
if (!$info) {
return false;
}
if (in_array($info[2], $valid)) {