提交 f544d04a 编写于 作者: X xindan

图片下载避免链接带锚点

上级 43a150f2
......@@ -210,9 +210,12 @@ class Qrcode
{
return DataReturn('url地址无效', -1);
}
// 防止存在锚点
$ext_arr = MyConfig('ueditor.imageManagerAllowFiles');
$ext = mb_substr($arr[0], $len, null, 'utf-8');
if(!in_array($ext, $ext_arr))
$temp_ext = explode('#', $ext);
if(!in_array($temp_ext[0], $ext_arr))
{
return DataReturn('无效图片地址', -1);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册