Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merged fix to allow referrals from the home page
  • Loading branch information
moodler committed Sep 1, 2004
1 parent 800977e commit 9d54c2f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/weblib.php
Expand Up @@ -157,7 +157,10 @@ function match_referer($goodreferer = "") {
if (empty($goodreferer)) {
$goodreferer = qualified_me();
}
return $goodreferer == get_referer();

$referer = get_referer();

return (($referer == $goodreferer) or ($referer == "$CFG->wwwroot/"));
}

function data_submitted($url="") {
Expand Down

0 comments on commit 9d54c2f

Please sign in to comment.