麻豆国产一级av,国产小可爱平台视频在线,精品丰满人妻无套内射,日本综合精品亚洲

宏博網(wǎng)絡(luò) | 專注互聯(lián)網(wǎng)品牌一站式服務(wù)

Thank you for visiting

029-81773686

全網(wǎng)開發(fā)&整合營銷服務(wù)商

CopyRight
?HOOBOO All rights reserved

全網(wǎng)開發(fā)&整合營銷服務(wù)商

029-81773686

discuz升級造成的“您當(dāng)前的訪問請求當(dāng)中含有非法字符”

2014.04.14


解決方案:
\source\class\discuz的discuz_application.php

找到:
private function _xss_check() {

                static $check = array('"', '>', '<', '\'', '(', ')', 'CONTENT-TRANSFER-ENCODING');

                if(isset($_GET['formhash']) && $_GET['formhash'] !== formhash()) {
                        system_error('request_tainting');
                }

                if($_SERVER['REQUEST_METHOD'] == 'GET' ) {
                        $temp = $_SERVER['REQUEST_URI'];
                } elseif(empty ($_GET['formhash'])) {
                        $temp = $_SERVER['REQUEST_URI'].file_get_contents('php://input');
                } else {
                        $temp = '';
                }

                if(!empty($temp)) {
                        $temp = strtoupper(urldecode(urldecode($temp)));
                        foreach ($check as $str) {
                                if(strpos($temp, $str) !== false) {
                                        system_error('request_tainting');
                                }
                        }
                }

                return true;
        }

替換為:
private function _xss_check() {
                $temp = strtoupper(urldecode(urldecode($_SERVER['REQUEST_URI'])));
                if(strpos($temp, '<') !== false || strpos($temp, '"') !== false || strpos($temp, 'CONTENT-TRANSFER-ENCODING') !== false) {
                        system_error('request_tainting');
                }
                return true;
        }

上一篇:暫時沒有數(shù)據(jù)

下一篇:Discuz掌上論壇獨立版宣傳頁出現(xiàn)亂碼

CopyRight ? 西安宏博網(wǎng)絡(luò)科技有限公司   備案號:陜ICP備10007014號-8   站點地圖 免責(zé)聲明:本網(wǎng)站部分資源來源于網(wǎng)絡(luò),如有侵權(quán),請聯(lián)系我們告知刪除,我們將會盡快處理,謝謝!本站不承擔(dān)任何法律責(zé)任。