Permalink
Browse files

MDL-29805 redirect: added check REQUIRE_CORRECT_ACCESS is true

  • Loading branch information...
1 parent 05e6fef commit 526c2d601c9193bb61dfea8541b01d25f358c44d Sam Hemelryk committed Dec 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/setuplib.php
View
@@ -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'])) {

0 comments on commit 526c2d6

Please sign in to comment.