mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 08:22:07 +02:00
MDL-71615 qbank_deletequestion: Ensure that the returnurl is qualified
This commit is contained in:
parent
73754b8c39
commit
6f36b0998d
@ -34,6 +34,10 @@ $returnurl = optional_param('returnurl', 0, PARAM_LOCALURL);
|
||||
$cmid = optional_param('cmid', 0, PARAM_INT);
|
||||
$courseid = optional_param('courseid', 0, PARAM_INT);
|
||||
|
||||
if ($returnurl) {
|
||||
$returnurl = new moodle_url($returnurl);
|
||||
}
|
||||
|
||||
\core_question\local\bank\helper::require_plugin_enabled('qbank_deletequestion');
|
||||
|
||||
if ($cmid) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user