]> git.mjollnir.org Git - moodle.git/commitdiff
problem with incorrect redirect url - wwwroot without the trailning slash in not...
authorskodak <skodak>
Sun, 8 Oct 2006 18:55:18 +0000 (18:55 +0000)
committerskodak <skodak>
Sun, 8 Oct 2006 18:55:18 +0000 (18:55 +0000)
auth/cas/login.php
backup/backup.php
blocks/rss_client/block_rss_client_action.php

index 36f74666d812695cf1ff84f9111afb3d6ac6c613..4b652aeb42f069c6e8fd0db7e462d4f9d078e9bf 100644 (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() == '') {   
index 80ab088c91f700608d6c583cccd250f33b5a6885..2b9cd2f2fe1e7042321a372048a43608ee9a7749 100644 (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;
index b515bd8787850f370fcd20eafbc68f5d56d15c50..54864d6f21150b24a29bfa1ab630e96b37dd6af5 100644 (file)
@@ -21,7 +21,7 @@ global $USER;
 if (isset($_SERVER['HTTP_REFERER'])) {
     $referrer = $_SERVER['HTTP_REFERER'];
 } else {
-    $referrer = $CFG->wwwroot;
+    $referrer = $CFG->wwwroot.'/';
 }