update v5.2.0

This commit is contained in:
evoxwht 2023-09-19 18:01:25 +08:00
parent 21897ee494
commit 26252d1b77

View File

@ -287,7 +287,7 @@ class CopyTaobaoServices extends BaseServices
} else { } else {
$ext = $this->getImageExtname($name)['ext_name']; $ext = $this->getImageExtname($name)['ext_name'];
} }
if (in_array($ext, ['php', 'js', 'html'])) { if (!in_array($ext, ['jpg', 'jpeg', 'png', 'gif', 'JPG', 'JPEG', 'PNG', 'GIF'])) {
throw new AdminException(400558); throw new AdminException(400558);
} }
//TODO 获取远程文件所采用的方法 //TODO 获取远程文件所采用的方法