错误提示:
Discuz! System Error
您当前的访问请求当中含有非法字符,已经被系统拒绝
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::debug_backtrace)
Discuz官方给出的解决方法:
程序目录下载修改discuz_application.php代码。位置:sourceclassdiscuz的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;
}
替换后,discuz后台更新缓存,看看能解决问题么。
ETF巨头持有6%的比特币——但73K的BTC价格可能突破他们的耐心底线
日报 | 天风证券子公司获香港虚拟资产第三类牌照;Coinbase CEO 称公司每周都在买入更多比特币
美国通过《部署美国区块链法案》:这对加密货币意味着什么
Aptos创16日新高 首支Aptos现货ETF即将问世
L2代币面临估值泡沫与投票操控风险
分析师预测SHIB目标价格为0.000081美元,技术分析显示柴犬币可能迎来600%暴涨