DZ 7.2 Too few arguments in include\discuzcode.func.php on line 369的解决方法
[b]现象:[/b]DZ 7.2如果发的帖子中包含了无效图片链接,在网页的顶部就会出现[quote]Warning: sprintf() [function.sprintf]: Too few arguments in D:\wwwroot\include\discuzcode.func.php on line 369[/quote]
[b]解决:[/b]include\discuzcode.func.php 422~424行,将:
[quote]function parseimg($width, $height, $src) {
return bbcodeurl($src, '<img'.($width > 0 ? " width=\"$width\"" : '').($height > 0 ? " height=\"$height\"" : '')." src=\"$src\" border=\"0\" alt=\"\" />");
}
[/quote]
修改为:
[quote]function parseimg($width, $height, $src) {
return bbcodeurl($src, str_replace('%','%%','<img'.($width > 0 ? " width=\"$width\"" : '').($height > 0 ? " height=\"$height\"" : '')." src=\"$src\" border=\"0\" alt=\"\" />"));
}[/quote]
页:
[1]