这样当用户上传了大写的扩展名之后
导致图片列表没有附件
原因是:
function_post.php
        $allowext = str_replace(' ', '', strtolower($_G['forum']['attachextensions']));
这里对所有附件扩展名进行了小写转换
后台进行调用的时候:
- if($pid > 0) {
 - $query = DB::query("SELECT a.*, af.*
 - FROM ".DB::table('forum_attachment')." a
 - LEFT JOIN ".DB::table(getattachtablebytid($_G['tid']))." af USING(aid)
 - WHERE a.pid='$pid' ORDER BY a.aid DESC");
 - while($attach = DB::fetch($query)) {
 - $attach['filenametitle'] = $attach['filename'];
 - $attach['ext'] = fileext($attach['filename']);
 - if($allowext && !in_array($attach['ext'], $allowext)) {
 - continue;
 - }
 - getattach_row($attach, $attachs, $imgattachs);
 - }
 - }
 
应该进行转换:$attach['ext'] = strtolower(fileext($attach['filename']));