Skip to content

Commit

Permalink
MDL-69493 cohort: remove escaping of return URL params.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulholden committed Aug 17, 2020
1 parent a0fc902 commit 1d4dbcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cohort/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@
$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) {
Expand Down

0 comments on commit 1d4dbcd

Please sign in to comment.