aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/install/install_install.php
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2010-08-03 11:41:01 +0200
committerAndreas Fischer <bantu@phpbb.com>2011-01-03 00:09:52 +0100
commit3c713b5e7d883d7414538de0557c68195cd73018 (patch)
treee22342e6ff9ff74b6a1d3286b31985ca25fbc1e3 /phpBB/install/install_install.php
parent5d01c58b7747b0a86431021757cf6aca298e88e7 (diff)
downloadforums-3c713b5e7d883d7414538de0557c68195cd73018.tar
forums-3c713b5e7d883d7414538de0557c68195cd73018.tar.gz
forums-3c713b5e7d883d7414538de0557c68195cd73018.tar.bz2
forums-3c713b5e7d883d7414538de0557c68195cd73018.tar.xz
forums-3c713b5e7d883d7414538de0557c68195cd73018.zip
[ticket/9746] Adding some more calls to phpbb_ip_normalise().
PHPBB3-9746
Diffstat (limited to 'phpBB/install/install_install.php')
-rw-r--r--phpBB/install/install_install.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/phpBB/install/install_install.php b/phpBB/install/install_install.php
index eaad2ed7e0..8143ea7737 100644
--- a/phpBB/install/install_install.php
+++ b/phpBB/install/install_install.php
@@ -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'] !== '/')
{