mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-29805 redirect: added check REQUIRE_CORRECT_ACCESS is true
This commit is contained in:
parent
16ae43f243
commit
31d5b2dd69
@ -762,7 +762,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'])) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user