mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-18 14:31:19 +02:00
[ticket/9091] Extract IPv4 address from addresses mapped into IPv6.
PHPBB3-9091
This commit is contained in:
@@ -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'] !== '/')
|
||||
{
|
||||
|
Reference in New Issue
Block a user