From d5719b5fffb76bbde2d552a9b007d09029d39901 Mon Sep 17 00:00:00 2001 From: wyd621 Date: Wed, 6 Nov 2013 06:37:24 +0000 Subject: [PATCH] * fix a bug for class validater. --- framework/router.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }