

我们找到并打开/include/uploadsafe.inc.php文件,在里面找到如下代码:
if(empty(${$_key.'_size'})) { ${$_key.'_size'} = @filesize($$_key); }在其下面添加如下代码:
$imtypes = array("image/pjpeg", "image/jpeg", "image/gif", "image/png", "image/xpng", "image/wbmp", "image/bmp"); if(in_array(strtolower(trim(${$_key.'_type'})), $imtypes)){ $image_dd = @getimagesize($$_key); if($image_dd == false){ continue; } if (!is_array($image_dd)) { exit('Upload filetype not allow !'); } }然后继续在下面一点的位置找到如下代码:
$image_dd = @getimagesize($$_key);在其下面添加如下代码:
if($image_dd == false){ continue; }添加完成后保存并替换原来的文件即可,这样阿里云后台就没有这个漏洞提示了。