Skip to content

Commit

Permalink
MDL-71615 qbank_deletequestion: Ensure that the returnurl is qualified
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols committed Aug 19, 2021
1 parent 73754b8 commit 6f36b09
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions question/bank/deletequestion/delete.php
Expand Up @@ -34,6 +34,10 @@
$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) {
Expand Down

0 comments on commit 6f36b09

Please sign in to comment.