Vergleich inc/functions_upload.php - 1.17 - 1.18

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 270Zeile 270

// Check if the uploaded file type matches the correct image type (returned by getimagesize)
$img_dimensions = @getimagesize($mybb->settings['uploadspath']."/".$filename);


// Check if the uploaded file type matches the correct image type (returned by getimagesize)
$img_dimensions = @getimagesize($mybb->settings['uploadspath']."/".$filename);

		if($img_dimensions[2] != $img_type)

		if(!is_array($img_dimensions) || $img_dimensions[2] != $img_type)

		{
@unlink($mybb->settings['uploadspath']."/".$filename);
$ret['error'] = $lang->error_uploadfailed;

		{
@unlink($mybb->settings['uploadspath']."/".$filename);
$ret['error'] = $lang->error_uploadfailed;