织梦“Safe Alert Request Error step 1/2”解决方法

    织梦“Safe Alert Request Error step 1/2”解决方法:找到程序的路径:/include/dedesql.class.php文件,点击编辑。

    查找:

    function __construct($pconnect=false,$nconnect=true) { $this->isClose = false; $this->safeCheck = true;

    修改为:

    function __construct($pconnect=false,$nconnect=true) { $this->isClose = false; $this->safeCheck = false;

    总结:

    出现上述警告的原因主要是由于SQL语句防注入功能引了的安全警告,在自定义模模型中使用了 union|sleep|benchmark|load_file|outfile之一都会引发这个警告,此外采集的内容,如果有“union” 这类语法也会出现在这个警告。