国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > CMS > Discuz > 正文

Discuz! System Error 您當(dāng)前的訪問請求當(dāng)中含有非法字符

2024-09-11 09:03:15
字體:
供稿:網(wǎng)友

Discuz! X3.1 正式版含目前最新版[2014-03-01]在用戶退出時偶爾會提示如下錯誤,Discuz! System Error 您當(dāng)前的訪問請求當(dāng)中含有非法字符,已經(jīng)被系統(tǒng)拒絕錯誤解決,下面我們就來看此問題的解決辦法.

Discuz! X3.1 正式版含目前最新版[2014-03-01]在用戶退出時偶爾會提示如下錯誤,特別是數(shù)據(jù)整合后的站點.

錯誤代碼:

Discuz! System Error 您當(dāng)前的訪問請求當(dāng)中含有非法字符,已經(jīng)被系統(tǒng)拒絕.

  1. PHP Debug 
  2. [Line: 0022]search.php(discuz_application->init) 
  3. [Line: 0071]sourceclassdiscuzdiscuz_application.php(discuz_application->_init_misc) 
  4. [Line: 0552]sourceclassdiscuzdiscuz_application.php(discuz_application->_xss_check) 
  5. [Line: 0355]sourceclassdiscuzdiscuz_application.php(system_error) 
  6. [Line: 0017]sourcefunctionfunction_core.php(discuz_error::system_error) 
  7. [Line: 0024]sourceclassdiscuzdiscuz_error.php(discuz_error::debug_backtrace)

臨時解決方法:

修改 sourceclassdiscuz下的discuz_application.php文件大約第350行的private function _xss_check()方法,代碼如下:

  1. private function _xss_check() { 
  2.  
  3. static $check = array('"''>''<'''', '(', ')', 'CONTENT-TRANSFER-ENCODING'); 
  4.  
  5. if(isset($_GET['formhash']) && $_GET['formhash'] !== formhash()) { 
  6. system_error('request_tainting'); 
  7.  
  8. if($_SERVER['REQUEST_METHOD'] == 'GET' ) { 
  9. $temp = $_SERVER['REQUEST_URI']; 
  10. elseif(emptyempty ($_GET['formhash'])) { 
  11. $temp = $_SERVER['REQUEST_URI'].file_get_contents('php://input'); 
  12. else { 
  13. $temp = ''
  14.  
  15. if(!emptyempty($temp)) { 
  16. $temp = strtoupper(urldecode(urldecode($temp))); 
  17. foreach ($check as $str) { 
  18. if(strpos($temp$str) !== false) { 
  19. system_error('request_tainting'); 
  20.  
  21. return true; 
  22. //為 
  23. private function _xss_check() { 
  24. $temp = strtoupper(urldecode(urldecode($_SERVER['REQUEST_URI'])));//開源軟件:Vevb.com 
  25. if(strpos($temp'<') !== false || strpos($temp'"') !== false || strpos($temp'CONTENT-TRANSFER-ENCODING') !== false) { 
  26. system_error('request_tainting'); 
  27. return true; 
  28. }

發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 色达县| 都昌县| 宾阳县| 连平县| 新巴尔虎右旗| 永平县| 滦平县| 东平县| 兴安盟| 武威市| 南澳县| 湖州市| 格尔木市| 碌曲县| 浑源县| 孝义市| 怀仁县| 陆良县| 榕江县| 叶城县| 舟曲县| 泰安市| 垣曲县| 高陵县| 邯郸县| 子洲县| 云阳县| 阿城市| 津南区| 都兰县| 彩票| 黎平县| 米脂县| 财经| 贵港市| 洱源县| 肥东县| 宁海县| 剑阁县| 西城区| 资阳市|