projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb99bab
)
Fixed REFERER problem, merged from stable
author
moodler
<moodler>
Mon, 30 Aug 2004 04:32:59 +0000
(
04:32
+0000)
committer
moodler
<moodler>
Mon, 30 Aug 2004 04:32:59 +0000
(
04:32
+0000)
login/index.php
patch
|
blob
|
history
diff --git
a/login/index.php
b/login/index.php
index 28fa5c94918ac332dc3960b841fad9d02e82c556..3a857461254466b22806a27fbd385a1bf97ce47e 100644
(file)
--- 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)) {