MDL-69493 cohort: remove escaping of return URL params.
authorPaul Holden <paulh@moodle.com>
Mon, 17 Aug 2020 20:14:57 +0000 (21:14 +0100)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Sat, 22 Aug 2020 15:09:23 +0000 (17:09 +0200)
cohort/index.php

index f611f98..0341bf9 100644 (file)
@@ -154,7 +154,7 @@ foreach($cohorts['cohorts'] as $cohort) {
         $cohortmanager = has_capability('moodle/cohort:manage', $cohortcontext);
         $cohortcanassign = has_capability('moodle/cohort:assign', $cohortcontext);
 
-        $urlparams = array('id' => $cohort->id, 'returnurl' => $baseurl->out_as_local_url());
+        $urlparams = array('id' => $cohort->id, 'returnurl' => $baseurl->out_as_local_url(false));
         $showhideurl = new moodle_url('/cohort/edit.php', $urlparams + array('sesskey' => sesskey()));
         if ($cohortmanager) {
             if ($cohort->visible) {