織夢DedeCms中出現Safe Alert: Request Erro,織夢教程
導讀:織夢教程織夢教程點評 :織夢DedeCMS出現Safe Alert: Request Error step 1 ! 或Safe Alert: Request Error ste織夢模板免費dede會員中心模板。
點評:織夢DedeCMS出現Safe Alert: Request Error step 1 ! 或Safe Alert: Request Error step 2!的解決方法
織夢DedeCMS出現Safe Alert: Request Error step 1 ! 或Safe Alert: Req織夢的模板uest Error step 2!的解決方法 這是由于新版中使用了SQL語句防注入功能引了的安全警告,在自定義模模型中使用了下面名稱 union|sleep|benchmark|load_file|outfile之一 都會引發這個警告,此外采集的內容,如果有 ‘union 這類語法也會出現在這個警告, 目前沒有100%完美的解決方法又能增強安全,又能防止注入 可修改dedecms的db基類把安全檢查關掉 打開include下的dedesql.class.php找到構造函數
代碼如下: function __construct($pconnect=false,$nconnect=true) { $this->isClose = false; $this->safeCheck = true; if($nconnect) { $this->Init($pconnect); } } 把$this->safeCheck = true;改為$this->safeCheck = false; 但是對于大多數網站,如果能正dede網站模板常運行,建議不要修改 此文件導致的錯dede商城模板誤會在 data 中生成一個 md5_safe.txt 建立提供這文件的網址給我們作參考,以便及時修正。相關織夢模板免費dede會員中心模板。
聲明: 本文由我的SEOUC技術文章主頁發布于:2023-07-20 ,文章織夢DedeCms中出現Safe Alert: Request Erro,織夢教程主要講述標簽,標題,織夢網站建設源碼以及服務器配置搭建相關技術文章。轉載請保留鏈接: http://www.bifwcx.com/article/web_32297.html