tp 3.1.3 验证码错误

浏览:925 发布日期:2013/05/16 分类:技术分享
验证码,因其本身有错无法显示

修改 image.class.php

static function output($im, $type='png', $filename='') {
/*添加*/
ob_clean();

header("Content-type: image/" . $type);
$ImageFun = 'image' . $type;
if (empty($filename)) {
$ImageFun($im);
} else {
$ImageFun($im, $filename);
}
imagedestroy($im);
}
最佳答案
评论( 相关
后面还有条评论,点击查看>>