发表时间:2012-04-14来源:网络
出现Safe Alert: Request Error step 1 ! 的解决方法
这是由于新版中使用了SQL语句防注入功能引了的安全警告,在自定义模模型中使用了下面名称
union|sleep|benchmark|load_file|outfile之一
都会引发这个警告,此外采集的内容,如果有 'union 这类语法也会出现在这个警告,由于目前没有100%完美的解决方法,可暂时用下面方法:
请打开这个文件include下的dedesql.class.php找到构造函数,找到
$this->safeCheck = $GLOBALS['sqlsaefCheck']; 改为
|
function __construct($pconnect=false,$nconnect=true) { $this->isClose = false; $this->safeCheck = true; if($nconnect) { $this->Init($pconnect); } } 把$this->safeCheck = true;改为$this->safeCheck = false; |
2011-06-05
2011-06-04
2012-10-06
2011-06-04
2011-06-04
2011-06-04
2011-06-20
2011-06-04
2022-03-24
2011-06-04