mirror of
https://github.com/moodle/moodle.git
synced 2025-03-20 07:30:01 +01:00
Merge branch 'MDL-48587-master' of git://github.com/xow/moodle
This commit is contained in:
commit
aaca4e3eff
@ -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];
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user