* fix a bug for class validater.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user