aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/install/install_install.php
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2010-07-23 12:48:01 +0200
committerAndreas Fischer <bantu@phpbb.com>2010-07-23 12:48:01 +0200
commite5d5d581727ce61e653fdfc9a30effb69799aac5 (patch)
treeb617619946adb521817d602a09d491cbbe8e0989 /phpBB/install/install_install.php
parentfc25fe694afdab683789c9ed962c77558f85796c (diff)
downloadforums-e5d5d581727ce61e653fdfc9a30effb69799aac5.tar
forums-e5d5d581727ce61e653fdfc9a30effb69799aac5.tar.gz
forums-e5d5d581727ce61e653fdfc9a30effb69799aac5.tar.bz2
forums-e5d5d581727ce61e653fdfc9a30effb69799aac5.tar.xz
forums-e5d5d581727ce61e653fdfc9a30effb69799aac5.zip
[ticket/9091] Extract IPv4 address from addresses mapped into IPv6.
PHPBB3-9091
Diffstat (limited to 'phpBB/install/install_install.php')
-rw-r--r--phpBB/install/install_install.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/phpBB/install/install_install.php b/phpBB/install/install_install.php
index 4c22db07b2..2800c26609 100644
--- a/phpBB/install/install_install.php
+++ b/phpBB/install/install_install.php
@@ -1236,6 +1236,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;
if ($data['script_path'] !== '/')
{