mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Fix for data exposure MDL-9052
This commit is contained in:
parent
8d5e99f086
commit
ed22c4f3bc
1 changed files with 3 additions and 0 deletions
|
@ -53,6 +53,9 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
$strforums = get_string('modulenameplural', 'forum');
|
$strforums = get_string('modulenameplural', 'forum');
|
||||||
|
if (!get_referer()) { // No referer - probably coming in via email See MDL-9052
|
||||||
|
require_login();
|
||||||
|
}
|
||||||
if ($course->id != SITEID) {
|
if ($course->id != SITEID) {
|
||||||
print_header($course->shortname, $course->fullname,
|
print_header($course->shortname, $course->fullname,
|
||||||
"<a href=\"../../course/view.php?id=$course->id\">$course->shortname</a> ->
|
"<a href=\"../../course/view.php?id=$course->id\">$course->shortname</a> ->
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue