problem with incorrect redirect url - wwwroot without the trailning slash in not standard compliant MDL-6193

This commit is contained in:
skodak
2006-10-08 18:55:18 +00:00
parent cefd17e991
commit d8247de55e
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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
View File
@@ -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.'/';
}