mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-28 12:30:42 +02:00
git-svn-id: file:///svn/phpbb/trunk@7503 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -2851,8 +2851,8 @@ function parse_attachments($forum_id, &$message, &$attachments, &$update_count,
|
||||
{
|
||||
$dimension = getimagesize($filename);
|
||||
|
||||
// If the dimensions could not be determined or the image being too small we display it as a link for safety purposes
|
||||
if ($dimension === false || $dimension[0] < 2 || $dimension[1] < 2)
|
||||
// If the dimensions could not be determined or the image being 0x0 we display it as a link for safety purposes
|
||||
if ($dimension === false || empty($dimension[0]) || empty($dimension[1]))
|
||||
{
|
||||
$display_cat = ATTACHMENT_CATEGORY_NONE;
|
||||
}
|
||||
|
@@ -580,7 +580,7 @@ function create_thumbnail($source, $destination, $mimetype)
|
||||
|
||||
list($width, $height, $type, ) = $dimension;
|
||||
|
||||
if ($width < 2 || $height < 2)
|
||||
if (empty($width) || empty($height))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user