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)
committerPaul Holden <paulh@moodle.com>
Mon, 17 Aug 2020 20:22:02 +0000 (21:22 +0100)
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) {