Steffen
Well-known member
- Affected version
- 2.0.2
PHP:
<?php
$dir = __DIR__;
require ($dir . '/src/XF.php');
XF::start($dir);
$ip = '1000:2000:3000:4000::';
$binaryIp = \XF\Util\Ip::convertIpStringToBinary($ip);
$ip2 = \XF\Util\Ip::convertIpBinaryToString($binaryIp);
var_dump($ip, $ip2);
Code:
$ php ip-bug.php
string(21) "1000:2000:3000:4000::"
string(20) "1000:2000:3000:4000:"