diff --git a/framework/router.class.php b/framework/router.class.php index 98f5291be6..0b3e5371e5 100755 --- a/framework/router.class.php +++ b/framework/router.class.php @@ -1593,7 +1593,7 @@ class router $errorLog .= "when visiting " . $this->getURI() . "\n"; /* If the ip is pulic, hidden the full path of scripts. */ - if(!defined('IN_SHELL') and !validater::checkIP($this->server->server_addr, 'private')) + if(!defined('IN_SHELL') and !($this->server->server_addr == '127.0.0.1' or filter_var($this->server->server_addr, FILTER_VALIDATE_IP, FILTER_FLAG_NO_PRIV_RANGE) === false)) { $errorLog = str_replace($this->getBasePath(), '', $errorLog); }