* fix a bug for class validater.

This commit is contained in:
wyd621
2013-11-06 06:37:24 +00:00
parent 335ff87b88
commit d5719b5fff
+1 -1
View File
@@ -1593,7 +1593,7 @@ class router
$errorLog .= "when visiting <strong>" . $this->getURI() . "</strong>\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);
}