注意:織夢Dedev5.6 中的跨站漏洞的修復(fù)方法。
修改templets\default\search.htm文件第43行,找到
{dede:pagelist listsize='4'/}
修改為
{dede:pagelist listsize='4' function=RemoveXSS(@me)/}
修改member\index_do.php文件第5行,找到
require_once(DEDEINC.'/dedetemplate.class.php');
在下面添加
$gourl=empty($gourl)? urlencode(GetCurUrl()) : RemoveXSS($gourl); 修改member\index.php文件第3行,找到 if(empty($uid)) { $$uid = ''; }
修改為文章來源:http://www.zghlxwxcb.cn/news/detail-435990.html
$uid=empty($uid)? "" : RemoveXSS($uid);
?修改方法很簡單,大家可以測試下,希望yii666整理的內(nèi)容能夠幫助到大家。文章來源地址http://www.zghlxwxcb.cn/news/detail-435990.html
到了這里,關(guān)于織夢Dedev5.6中的跨站漏洞的修復(fù)實例方法的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!