|
BUG反馈
程序版本: |
X3.4 |
浏览器: |
Chrome |
BUG地址: |
隐藏内容 |
BUG截图: |
- |
测试用户名: |
隐藏内容 |
测试密码: |
隐藏内容 |
dz 3.4 UTF8 20230210 版
后台主题帖审核会显示整个主题的(包括所有回帖)图片和附件
操作如下:
1. 发主题帖,1楼上传图片1
2. 发回帖,2楼上传图片2
3. 进后台主题审核,会显示 图片1 和 图片2
前台的显示,正确
后台的显示:照理说不应该显示 图片2
source/admincp/moderate/moderate_thread.php, fetch_all_by_id 读取的是整个tid的图片和附件
if($thread['attachment']) {
require_once libfile('function/attachment');
foreach(C::t('forum_attachment_n')->fetch_all_by_id('tid:'.$thread['tid'], 'tid', $thread['tid']) as $attach) {
$_G['setting']['attachurl'] = $attach['remote'] ? $_G['setting']['ftp']['attachurl'] : $_G['setting']['attachurl'];
$attach['url'] = $attach['isimage']
? " $attach[filename] (".sizecount($attach['filesize']).")<br /><br /><img src=\"".$_G['setting']['attachurl']."forum/$attach[attachment]\" onload=\"if(this.width > 400) {this.resized=true; this.width=400;}\">"
: "<a href=\"".$_G['setting']['attachurl']."forum/$attach[attachment]\" target=\"_blank\">$attach[filename]</a> (".sizecount($attach['filesize']).")";
$thread['message'] .= "<br /><br />$lang[attachment]: ".attachtype(fileext($attach['filename'])."\t").$attach['url'];
}
}
我知道答案
回答被采纳将会获得 1 贡献 已有2人回答
|
|