In /includes/init_includes/init_sanitize.php there is a code that reads:
Code:
/**
* sanitize $_SERVER vars
*/
$_SERVER['REMOTE_ADDR'] = preg_replace('/[^0-9.%]/', '', $_SERVER['REMOTE_ADDR']);
This brakes $_SERVER['REMOTE_ADDR'] if the server is running on IPv6
My machine LAN IPv4 address is 192.168.1.30, which in IPv6 is fe80:0:0:0:0:0:c0a8:11e, but the above outputs 80000000811 which is kinda wrong.
(sorry if this has been reported before, I tried searching "ipv6", but it returned whole lot of unrelated threads which didn't seem to have the string "ipv6" in them!)
Bookmarks