MDL-57777 rss: Return 404 when context not found.

This commit is contained in:
Michael Aherne
2017-01-26 10:49:13 +00:00
parent 26c76fcc0b
commit 829e7ae8a3
+5 -1
View File
@@ -115,7 +115,11 @@ if ($token === "$inttoken") {
}
// Check the context actually exists.
list($context, $course, $cm) = get_context_info_array($contextid);
try {
list($context, $course, $cm) = get_context_info_array($contextid);
} catch (Exception $e) {
rss_error();
}
$PAGE->set_context($context);