MDL-29805 redirect: added check REQUIRE_CORRECT_ACCESS is true
This commit is contained in:
+1
-1
@@ -697,7 +697,7 @@ function initialise_fullme() {
|
||||
define('NO_MOODLE_COOKIES', true);
|
||||
}
|
||||
// The login/token.php script should call the correct url/port.
|
||||
if (defined('REQUIRE_CORRECT_ACCESS')) {
|
||||
if (defined('REQUIRE_CORRECT_ACCESS') && REQUIRE_CORRECT_ACCESS) {
|
||||
$wwwrootport = empty($wwwroot['port'])?'':$wwwroot['port'];
|
||||
$calledurl = $rurl['host'];
|
||||
if (!empty($rurl['port'])) {
|
||||
|
||||
Reference in New Issue
Block a user