* adjust for task #5180.

This commit is contained in:
wangyidong
2018-12-26 15:51:53 +08:00
parent e5f728c77b
commit 8735d788e6
+2 -1
View File
@@ -2264,7 +2264,8 @@ class baseRouter
* 为了安全起见,对公网环境隐藏脚本路径。
* If the ip is pulic, hidden the full path of scripts.
*/
if(!defined('IN_SHELL') and !($this->server->remote_addr == '127.0.0.1' or filter_var($this->server->remote_addr, FILTER_VALIDATE_IP, FILTER_FLAG_NO_PRIV_RANGE) === false))
$remoteIP = helper::getRemoteIp();
if(!defined('IN_SHELL') and !($remoteIP == '127.0.0.1' or filter_var($remoteIP, FILTER_VALIDATE_IP, FILTER_FLAG_NO_PRIV_RANGE) === false))
{
$errorLog = str_replace($this->getBasePath(), '', $errorLog);
}