-
Bug
-
Resolution: Fixed
-
Critical
-
2.7.3
-
MOODLE_27_STABLE
-
MOODLE_27_STABLE, MOODLE_28_STABLE
-
MDL-48587-master -
Easy
-
-
BACKEND Sprint 19
Reported here: https://moodle.org/mod/forum/discuss.php?d=276367
Parse error: syntax error, unexpected '[' in \\server\moodle\lib\moodlelib.php on line 8633
|
This should work fine on php 5.4 and above (which is required) but it looks like the this function is called before php version check and the error message in confusing for the user.
It's not difficult to re-write $address = explode(":", $address)[0]; into the code compatible with older php versions
- is a regression caused by
-
MDL-43987 Function cleanremoteaddr() in /lib/moodlelib.php fails validation of IP addresses with port numbers
-
- Closed
-