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:
@@ -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'] !== '/')
|
||||
{
|
||||
|
Reference in New Issue
Block a user