MDL-29805 redirect: added check REQUIRE_CORRECT_ACCESS is true

This commit is contained in:
Sam Hemelryk 2012-12-12 09:46:45 +13:00
parent 16ae43f243
commit 31d5b2dd69

View File

@ -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'])) {