修复 回帖指定的逻辑漏洞
This commit is contained in:
parent
16f973fd23
commit
4bcb130e24
|
@ -41,6 +41,10 @@ if(!submitcheck('modsubmit')) {
|
|||
|
||||
if($_GET['stickreply']) {
|
||||
foreach($sticktopiclist as $pid => $postnum) {
|
||||
$post = C::t('forum_post')->fetch_all_by_pid('tid:'.$_G['tid'], $pid, false);
|
||||
if($post[$pid]['tid'] != $_G['tid']) {
|
||||
continue;
|
||||
}
|
||||
C::t('forum_poststick')->insert(array(
|
||||
'tid' => $_G['tid'],
|
||||
'pid' => $pid,
|
||||
|
|
Loading…
Reference in New Issue