Skip to content
Browse files

MDL-28720 calendar: Quick fix of a regression in set.php

  • Loading branch information...
1 parent 65af112 commit 7f422374c101dcb0affdd5127b855671af4f3748 @samhemelryk samhemelryk committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 calendar/set.php
View
4 calendar/set.php
@@ -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));
@@ -65,4 +65,4 @@
break;
}
-redirect($return);
+redirect($return);

0 comments on commit 7f42237

Please sign in to comment.
Something went wrong with that request. Please try again.