mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-29805 redirect: added check REQUIRE_CORRECT_ACCESS is true
This commit is contained in:
parent
1b39edd662
commit
27f4a337a0
1 changed files with 1 additions and 1 deletions
|
@ -762,7 +762,7 @@ function initialise_fullme() {
|
||||||
define('NO_MOODLE_COOKIES', true);
|
define('NO_MOODLE_COOKIES', true);
|
||||||
}
|
}
|
||||||
// The login/token.php script should call the correct url/port.
|
// 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'];
|
$wwwrootport = empty($wwwroot['port'])?'':$wwwroot['port'];
|
||||||
$calledurl = $rurl['host'];
|
$calledurl = $rurl['host'];
|
||||||
if (!empty($rurl['port'])) {
|
if (!empty($rurl['port'])) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue