mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
Merged fix to allow referrals from the home page
This commit is contained in:
parent
800977e284
commit
9d54c2fb73
@ -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="") {
|
||||
|
Loading…
x
Reference in New Issue
Block a user