1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

[ticket/9746] Adding some more calls to phpbb_ip_normalise().

PHPBB3-9746
This commit is contained in:
Andreas Fischer
2010-08-03 11:41:01 +02:00
parent 5d01c58b77
commit 3c713b5e7d
3 changed files with 7 additions and 5 deletions

View File

@@ -1235,8 +1235,7 @@ class install_install extends module
$current_time = time();
$user_ip = (!empty($_SERVER['REMOTE_ADDR'])) ? htmlspecialchars($_SERVER['REMOTE_ADDR']) : '';
$user_ip = (stripos($user_ip, '::ffff:') === 0) ? substr($user_ip, 7) : $user_ip;
$user_ip = (!empty($_SERVER['REMOTE_ADDR'])) ? phpbb_ip_normalise($_SERVER['REMOTE_ADDR']) : '';
if ($data['script_path'] !== '/')
{