Merge branch 'MDL-48587-master' of git://github.com/xow/moodle

This commit is contained in:
Dan Poltawski 2014-12-16 17:05:03 +00:00
commit aaca4e3eff

View File

@ -8664,7 +8664,8 @@ function getremoteaddr($default='0.0.0.0') {
} else {
// Remove port from IPv4.
if (substr_count($address, ":") == 1) {
$address = explode(":", $address)[0];
$parts = explode(":", $address);
$address = $parts[0];
}
}