好湿?好紧?好多水好爽自慰,久久久噜久噜久久综合,成人做爰A片免费看黄冈,机机对机机30分钟无遮挡

主頁(yè) > 網(wǎng)站建設(shè) > 建站知識(shí) > 織夢(mèng)cms/dedecms系統(tǒng)出現(xiàn)Safe Alert: Request Error step 1

織夢(mèng)cms/dedecms系統(tǒng)出現(xiàn)Safe Alert: Request Error step 1

POST TIME:2017-11-13 00:51

注意:本教程適用于 DedeCMS V5.6

織夢(mèng)dedecms出現(xiàn)Safe Alert: Request Error step 1 ! 或Safe Alert: Request Error step 2!的解決方法

1)形成原因

這是由于新版中使用了SQL語(yǔ)句防注入功能引了的安全警告,在自定義模模型中使用了 union|sleep|benchmark|load_file|outfile之一都會(huì)引發(fā)這個(gè)警告,此外采集的內(nèi)容,如果有 ‘union 這類(lèi)語(yǔ)法也會(huì)出現(xiàn)在這個(gè)警告,

目前沒(méi)有100%完美的解決方法又能增強(qiáng)安全,又能防止注入。可修改dedecms的db基類(lèi)把安全檢查關(guān)掉

2)解決方法

打開(kāi)include下的dedesql.class.php找到如下構(gòu)造函數(shù)

以下為引用的內(nèi)容:

  1. function __construct($pconnect=false,$nconnect=true)
  2. {
  3. $this->isClose = false;
  4. $this->safeCheck = true;
  5. if($nconnect)
  6. {
  7. $this->Init($pconnect);
  8. }
  9. }

把其中的$this->safeCheck = true;改為$this->safeCheck = false;

此文件導(dǎo)致的錯(cuò)誤會(huì)在 data 中生成一個(gè) md5_safe.txt 建立提供這文件的網(wǎng)址給我們作參考,以便及時(shí)修正。

但是對(duì)于大多數(shù)網(wǎng)站,如果能正常運(yùn)行,建議不要修改!



收縮
  • 微信客服
  • 微信二維碼
  • 電話(huà)咨詢(xún)

  • 400-1100-266