include/customfields.func.php文件下301行左右
$imgurl = "{dede:img text='' width='' height=''} ".$iurl." {/dede:img}";
if(preg_match("/^http:\/\//i", $iurl) && $GLOBALS['cfg_isUrlOpen'])
{
//远程图片
$reimgs = '';
if($GLOBALS['cfg_isUrlOpen'])
{
$reimgs = GetRemoteImage($iurl,$adminid);
if(is_array($reimgs))
{
if($dtype=='imgfile')
{
$imgurl = $reimgs[1];
}
else
{
$imgurl = "{dede:img text='' width='".$reimgs[1]."' height='".$reimgs[2]."'} ".$reimgs[0]." {/dede:img}";
}
}
}
else
{
if($dtype=='imgfile')
{
$imgurl = $iurl;
}
else
{
$imgurl = "{dede:img text='' width='' height=''} ".$iurl." {/dede:img}";
}
}
}
把这部分里的{dede:img text='' width='' height=''}{/dede:img},删掉试试。
还有我上传图片的时候系统配置参数,站点根网址变量名是cfg_basehost一定要写好。300行这里 $iurl = trim(str_replace($GLOBALS['cfg_basehost'],"",$iurl));对路径进行了操作,我的根网址填的/,路径里的/都给我过滤了。找半天才发现
发表评论 取消回复