Board logo

标题: [软件故障] DZ 7.2 Too few arguments in include\discuzcode.func.php on line 369的解决方法 [打印本页]

作者: shillan    时间: 2018-8-23 08:04     标题: DZ 7.2 Too few arguments in include\discuzcode.func.php on line 369的解决方法

现象:DZ 7.2如果发的帖子中包含了无效图片链接,在网页的顶部就会出现
Warning: sprintf() [function.sprintf]: Too few arguments in D:\wwwroot\include\discuzcode.func.php on line 369

解决:include\discuzcode.func.php 422~424行,将:

function parseimg($width, $height, $src) {

return bbcodeurl($src, '<img'.($width > 0 ? " width=\"$width\"" : '').($height > 0 ? " height=\"$height\"" : '')." src=\"$src\" border=\"0\" alt=\"\" />");
}

修改为:
function parseimg($width, $height, $src) {
        return bbcodeurl($src, str_replace('%','%%','<img'.($width > 0 ? " width=\"$width\"" : '').($height > 0 ? " height=\"$height\"" : '')." src=\"$src\" border=\"0\" alt=\"\" />"));
}





欢迎光临 逐梦论坛 (http://temp2023.zhumeng.org/) Powered by Discuz! 7.2