* code for task #6708.

This commit is contained in:
wangyidong
2019-12-10 13:55:01 +08:00
parent 0c8fd46f7b
commit 6630dd0bb7
40 changed files with 4988 additions and 12 deletions
+1 -1
View File
@@ -2273,7 +2273,7 @@ class baseRouter
* 为了安全起见,对公网环境隐藏脚本路径。
* If the ip is pulic, hidden the full path of scripts.
*/
$remoteIP = helper::getRemoteIp();
$remoteIP = zget($_SERVER, "REMOTE_ADDR", '');
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);