[ticket/16189] Update version

PHPBB3-16189
This commit is contained in:
rubencm 2019-10-24 20:31:16 +00:00
parent b6a99e7dca
commit 0a7e98951b
2 changed files with 6 additions and 5 deletions

View file

@ -2987,7 +2987,7 @@ function phpbb_ip_normalise(string $address)
{ {
$ip_normalised = false; $ip_normalised = false;
if(filter_var($address, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4)) if (filter_var($address, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4))
{ {
$ip_normalised = $address; $ip_normalised = $address;
} }
@ -2996,7 +2996,8 @@ function phpbb_ip_normalise(string $address)
$ip_normalised = inet_ntop(inet_pton($address)); $ip_normalised = inet_ntop(inet_pton($address));
// If is ipv4 // If is ipv4
if(stripos($ip_normalised, '::ffff:') === 0) { if (stripos($ip_normalised, '::ffff:') === 0)
{
$ip_normalised = substr($ip_normalised, 7); $ip_normalised = substr($ip_normalised, 7);
} }
} }

View file

@ -635,7 +635,7 @@ function phpbb_checkdnsrr($host, $type = 'MX')
* @return mixed false on failure, * @return mixed false on failure,
* string otherwise * string otherwise
* *
* @deprecated 3.2.9 (To be removed: 4.0.0) * @deprecated 3.3.0-b2 (To be removed: 4.0.0)
*/ */
function phpbb_inet_ntop($in_addr) function phpbb_inet_ntop($in_addr)
{ {
@ -706,7 +706,7 @@ function phpbb_inet_ntop($in_addr)
* @return mixed false if address is invalid, * @return mixed false if address is invalid,
* in_addr representation of the given address otherwise (string) * in_addr representation of the given address otherwise (string)
* *
* @deprecated 3.2.9 (To be removed: 4.0.0) * @deprecated 3.3.0-b2 (To be removed: 4.0.0)
*/ */
function phpbb_inet_pton($address) function phpbb_inet_pton($address)
{ {