您的位置:老铁SEO > 站长新闻 > 网站技术 >

今日头条采集伪原创软件 织梦DedeCMS投票漏洞解决方法

文章来源:http://www.6cu.com

作者:文章采集伪原创工

人气:12

2021-05-14 12:18:16

打开//dedevote.class.php文件,查 找
 

$this->dsql->ExecuteNoneQuery("UPDATE `dede_vote` SET totalcount='".($this->VoteInfos['totalcount']+1)."',votenote='".addslashes($items)."' WHERE aid='".$this->VoteID."'");

修改为

$this->dsql->ExecuteNoneQuery("UPDATE `dede_vote` SET totalcount='".($this->VoteInfos['totalcount']+1)."',votenote='".mysql_real_escape_string($items)."' WHERE aid='".mysql_real_escape_string($this->VoteID)."'");

注:

* addslashes() 是强行加;

* mysql_real_escape_string()  会判断字符集,但是对PHP版本有要求;(PHP 4 >= 4.0.3, PHP 5)

最好直接使用addslashes同时要查看你php是否默认打开了addslashes这个自动功能哦,如果有了我们就不用加了。

相关文章

在线客服

外链咨询

扫码加我微信

微信:juxia_com

返回顶部