+-----------------------------------------------+ | MyBB 1.1.8 Security Update | | Manual Patch Instructions | | | | Please note: | | This patch should only be applied to boards | | running MyBB 1.1.x | | | +-----------------------------------------------+ --------------------------- 1. inc/functions_upload.php --------------------------- Find: -- if($img_dimensions[2] != $img_type) { @unlink($mybb->settings['uploadspath']."/".$filename); $ret['error'] = $lang->error_uploadfailed; return $ret; } -- Replace with: -- if(!is_array($img_dimensions) || $img_dimensions[2] != $img_type) { @unlink($mybb->settings['uploadspath']."/".$filename); $ret['error'] = $lang->error_uploadfailed; return $ret; } -- ALL DONE