Merge branch 'MDL-68125-regression-MOODLE_37_STABLE' of https://github.com/brendanheywood/moodle into MOODLE_37_STABLE

This commit is contained in:
Eloy Lafuente (stronk7)
2020-03-12 01:19:51 +01:00
+1 -1
View File
@@ -9141,7 +9141,7 @@ function getremoteaddr($default='0.0.0.0') {
$forwardedaddresses = array_filter($forwardedaddresses, function($ip) {
global $CFG;
return !\core\ip_utils::is_ip_in_subnet_list($ip, $CFG->reverseproxyignore, ',');
return !\core\ip_utils::is_ip_in_subnet_list($ip, $CFG->reverseproxyignore ?? '', ',');
});
// Multiple proxies can append values to this header including an