mirror of
https://github.com/crmeb/CRMEB.git
synced 2025-12-10 17:42:50 +00:00
update v5.2.0
This commit is contained in:
parent
21897ee494
commit
26252d1b77
@ -287,7 +287,7 @@ class CopyTaobaoServices extends BaseServices
|
||||
} else {
|
||||
$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);
|
||||
}
|
||||
//TODO 获取远程文件所采用的方法
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user