Merged fix to allow referrals from the home page

This commit is contained in:
moodler 2004-09-01 11:24:35 +00:00
parent 800977e284
commit 9d54c2fb73

View File

@ -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="") {