mirror of
https://github.com/phpbb/phpbb.git
synced 2025-03-21 08:00:46 +01:00
[ticket/16189] Update version
PHPBB3-16189
This commit is contained in:
parent
b6a99e7dca
commit
0a7e98951b
@ -2987,16 +2987,17 @@ function phpbb_ip_normalise(string $address)
|
||||
{
|
||||
$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;
|
||||
}
|
||||
else if (filter_var($address, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6))
|
||||
else if (filter_var($address, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6))
|
||||
{
|
||||
$ip_normalised = inet_ntop(inet_pton($address));
|
||||
|
||||
// If is ipv4
|
||||
if(stripos($ip_normalised, '::ffff:') === 0) {
|
||||
if (stripos($ip_normalised, '::ffff:') === 0)
|
||||
{
|
||||
$ip_normalised = substr($ip_normalised, 7);
|
||||
}
|
||||
}
|
||||
|
@ -635,7 +635,7 @@ function phpbb_checkdnsrr($host, $type = 'MX')
|
||||
* @return mixed false on failure,
|
||||
* 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)
|
||||
{
|
||||
@ -706,7 +706,7 @@ function phpbb_inet_ntop($in_addr)
|
||||
* @return mixed false if address is invalid,
|
||||
* 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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user