From ed90bc47fecd90a091a950c039db55b4e8194e9b Mon Sep 17 00:00:00 2001 From: moodler Date: Mon, 30 Aug 2004 04:32:59 +0000 Subject: [PATCH] Fixed REFERER problem, merged from stable --- login/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/login/index.php b/login/index.php index 28fa5c9491..3a85746125 100644 --- a/login/index.php +++ b/login/index.php @@ -94,7 +94,7 @@ } if (empty($SESSION->wantsurl)) { - $SESSION->wantsurl = $_SERVER["HTTP_REFERER"]; + $SESSION->wantsurl = array_key_exists('HTTP_REFERER',$_SERVER) ? $_SERVER["HTTP_REFERER"] : $CFG->wwwroot; } if (empty($frm->username)) { -- 2.39.5