Merge branch 'w39_MDL-41223_m26_customlogin' of https://github.com/skodak/moodle

This commit is contained in:
Marina Glancy 2013-09-25 10:54:19 +10:00
commit dbad2a65ec

View File

@ -275,7 +275,8 @@ if (empty($SESSION->wantsurl)) {
$_SERVER["HTTP_REFERER"] != $CFG->wwwroot &&
$_SERVER["HTTP_REFERER"] != $CFG->wwwroot.'/' &&
$_SERVER["HTTP_REFERER"] != $CFG->httpswwwroot.'/login/' &&
$_SERVER["HTTP_REFERER"] != $CFG->httpswwwroot.'/login/index.php')
strpos($_SERVER["HTTP_REFERER"], $CFG->httpswwwroot.'/login/?') !== 0 &&
strpos($_SERVER["HTTP_REFERER"], $CFG->httpswwwroot.'/login/index.php') !== 0) // There might be some extra params such as ?lang=.
? $_SERVER["HTTP_REFERER"] : NULL;
}