Skip to content

Commit

Permalink
MDL-28720 calendar: Quick fix of a regression in set.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Hemelryk committed Nov 1, 2011
1 parent f94d606 commit 21e7d4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions calendar/set.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
$var = required_param('var', PARAM_ALPHA);
$return = clean_param(base64_decode(required_param('return', PARAM_RAW)), PARAM_URL);

$url = new moodle_url('/calendar/set.php', array('return'=>base64_encode($return->out(false)),'var'=>$var, 'sesskey'=>sesskey()));
$url = new moodle_url('/calendar/set.php', array('return'=>base64_encode($return),'var'=>$var, 'sesskey'=>sesskey()));
$PAGE->set_url($url);
$PAGE->set_context(get_context_instance(CONTEXT_SYSTEM));

Expand All @@ -65,4 +65,4 @@
break;
}

redirect($return);
redirect($return);

0 comments on commit 21e7d4c

Please sign in to comment.