diff options
Diffstat (limited to 'phpBB/phpbb/session.php')
| -rw-r--r-- | phpBB/phpbb/session.php | 10 | 
1 files changed, 5 insertions, 5 deletions
| diff --git a/phpBB/phpbb/session.php b/phpBB/phpbb/session.php index 31f32af7c4..38e40ba29e 100644 --- a/phpBB/phpbb/session.php +++ b/phpBB/phpbb/session.php @@ -250,7 +250,7 @@ class session  			$ips = explode(' ', $this->forwarded_for);  			foreach ($ips as $ip)  			{ -				// check IPv4 first, the IPv6 is hopefully only going to be used very seldomly +				// check IPv4 first, the IPv6 is hopefully only going to be used very seldom  				if (!empty($ip) && !preg_match(get_preg_expression('ipv4'), $ip) && !preg_match(get_preg_expression('ipv6'), $ip))  				{  					// contains invalid data, don't use the forwarded for header @@ -478,8 +478,8 @@ class session  				}  				else  				{ -					// Added logging temporarly to help debug bugs... -					if (defined('DEBUG') && $this->data['user_id'] != ANONYMOUS) +					// Added logging temporarily to help debug bugs... +					if ($phpbb_container->getParameter('session.log_errors') && $this->data['user_id'] != ANONYMOUS)  					{  						if ($referer_valid)  						{ @@ -1336,7 +1336,7 @@ class session  	* Only IPv4 (rbldns does not support AAAA records/IPv6 lookups)  	*  	* @author satmd (from the php manual) -	* @param string 		$mode	register/post - spamcop for example is ommitted for posting +	* @param string 		$mode	register/post - spamcop for example is omitted for posting  	* @param string|false	$ip		the IPv4 address to check  	*  	* @return false if ip is not blacklisted, else an array([checked server], [lookup]) @@ -1395,7 +1395,7 @@ class session  	/**  	* Check if URI is blacklisted -	* This should be called only where absolutly necessary, for example on the submitted website field +	* This should be called only where absolutely necessary, for example on the submitted website field  	* This function is not in use at the moment and is only included for testing purposes, it may not work at all!  	* This means it is untested at the moment and therefore commented out  	* | 
