返回列表 发帖

[软件故障] 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=\"\" />"));
}
欢迎光临:逐梦论坛

返回列表

Powered by Discuz! 7.2   论坛QQ群:逐梦论坛群

© 2001-2021 Comsenz Inc. 鲁公网安备 37120302000001号