problem with incorrect redirect url - wwwroot without the trailning slash in not standard compliant MDL-6193
This commit is contained in:
+1
-1
@@ -281,7 +281,7 @@ defined('MOODLE_INTERNAL') or die('Direct access to this script is forbidden.');
|
||||
}
|
||||
|
||||
if (empty($SESSION->wantsurl)) {
|
||||
$SESSION->wantsurl = array_key_exists('HTTP_REFERER',$_SERVER) ? $_SERVER["HTTP_REFERER"] : $CFG->wwwroot;
|
||||
$SESSION->wantsurl = array_key_exists('HTTP_REFERER',$_SERVER) ? $_SERVER["HTTP_REFERER"] : $CFG->wwwroot.'/';
|
||||
}
|
||||
|
||||
if (get_moodle_cookie() == '') {
|
||||
|
||||
+1
-1
@@ -62,7 +62,7 @@
|
||||
if ($id) {
|
||||
$redirecto = $CFG->wwwroot . '/course/view.php?id=' . $id; //Course page
|
||||
} else {
|
||||
$redirecto = $CFG->wwwroot;
|
||||
$redirecto = $CFG->wwwroot.'/';
|
||||
}
|
||||
redirect ($redirecto, get_string('backupcancelled')); //Site page
|
||||
exit;
|
||||
|
||||
@@ -21,7 +21,7 @@ global $USER;
|
||||
if (isset($_SERVER['HTTP_REFERER'])) {
|
||||
$referrer = $_SERVER['HTTP_REFERER'];
|
||||
} else {
|
||||
$referrer = $CFG->wwwroot;
|
||||
$referrer = $CFG->wwwroot.'/';
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user