From a88c706d98b74d10c1689a29b49fe4c7ff3f03d4 Mon Sep 17 00:00:00 2001 From: Paul Holden Date: Mon, 17 Aug 2020 21:14:57 +0100 Subject: [PATCH] MDL-69493 cohort: remove escaping of return URL params. --- cohort/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cohort/index.php b/cohort/index.php index f611f98e468..0341bf96385 100644 --- a/cohort/index.php +++ b/cohort/index.php @@ -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) {