Permalink
Browse files

MDL-29805 redirect: added check REQUIRE_CORRECT_ACCESS is true

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

0 comments on commit ab1f9aa

Please sign in to comment.