mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Update functions_upload.php
This commit is contained in:
parent
7b74f38d7a
commit
7791723d95
@ -91,7 +91,7 @@ class upload_common
|
||||
list($width, $height, $type, $attr) = $img_info;
|
||||
|
||||
// redefine ext
|
||||
if (!$width || !$height || !$type || !isset($this->img_types[$type]))
|
||||
if (!$width || !$height || !$type || !isset($this->img_types[$type]) || !isset($this->ext_ids[$this->img_types[$type]]))
|
||||
{
|
||||
$this->errors[] = $lang['UPLOAD_ERROR_FORMAT'];
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user