Error Tip:
discuz! System Error
Your current access request contains illegal characters and has been rejected by the system
PHP Debug
[Line:0022]search.php (Discuz_application->init)
[Line:0071]source/class/discuz/discuz_application.php (Discuz_application->_init_misc)
[Line:0552]source/class/discuz/discuz_application.php (Discuz_application->_xss_check)
[Line:0355]source/class/discuz/discuz_application.php (System_error)
[Line:0023]source/function/function_core.php (Discuz_error::system_error)
[Line:0024]source/class/discuz/discuz_error.php (discuz_error::d ebug_backtrace)
Discuz The official solution:
Program directory download modify discuz_application.php code. Location: \source\class\discuz discuz_application.php
Find
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;
}
To be replaced by:
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;
}
After the replacement, discuz the background update cache to see if it solves the problem.