mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-12 20:56:40 +02:00
[ticket/16189] Update version
PHPBB3-16189
This commit is contained in:
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user