From d8247de55ee54e7af6f0e7d355c31a434f43271c Mon Sep 17 00:00:00 2001 From: skodak Date: Sun, 8 Oct 2006 18:55:18 +0000 Subject: [PATCH] problem with incorrect redirect url - wwwroot without the trailning slash in not standard compliant MDL-6193 --- auth/cas/login.php | 2 +- backup/backup.php | 2 +- blocks/rss_client/block_rss_client_action.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/auth/cas/login.php b/auth/cas/login.php index 36f74666d8..4b652aeb42 100644 --- a/auth/cas/login.php +++ b/auth/cas/login.php @@ -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() == '') { diff --git a/backup/backup.php b/backup/backup.php index 80ab088c91..2b9cd2f2fe 100644 --- a/backup/backup.php +++ b/backup/backup.php @@ -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; diff --git a/blocks/rss_client/block_rss_client_action.php b/blocks/rss_client/block_rss_client_action.php index b515bd8787..54864d6f21 100644 --- a/blocks/rss_client/block_rss_client_action.php +++ b/blocks/rss_client/block_rss_client_action.php @@ -21,7 +21,7 @@ global $USER; if (isset($_SERVER['HTTP_REFERER'])) { $referrer = $_SERVER['HTTP_REFERER']; } else { - $referrer = $CFG->wwwroot; + $referrer = $CFG->wwwroot.'/'; } -- 2.39.5