使用DEDECMS時(shí),有時(shí)因?yàn)槭褂胔eader()函數(shù)跳轉(zhuǎn)時(shí)前面有'?'輸出導(dǎo)致該函數(shù)無法實(shí)現(xiàn),具體表現(xiàn)為該頁(yè)面什么都不顯示,全是白板,查看頁(yè)面源代碼會(huì)有幾個(gè)'?'之類的字符,解決方法請(qǐng)找到改功能頁(yè)面,例如將
{
header("location:login.php?gotopage=".urlencode($dedeNowurl));
exit();
}
替換成
{
exit('<__script>location.href="login.php?gotopage='.urlencode($dedeNowurl).'";<__script><__script><__script>');
}
即可。