Merge branch 'MDL-68125-regression' of https://github.com/brendanheywood/moodle
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Thu, 12 Mar 2020 00:19:23 +0000 (01:19 +0100)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Thu, 12 Mar 2020 00:19:23 +0000 (01:19 +0100)
lib/moodlelib.php

index 7a44d92..e879546 100644 (file)
@@ -9207,7 +9207,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