MDL-25249 calendar: Fixed regression in set.php
authorSam Hemelryk <sam@moodle.com>
Wed, 29 Jun 2011 07:08:27 +0000 (15:08 +0800)
committerSam Hemelryk <sam@moodle.com>
Wed, 29 Jun 2011 07:08:27 +0000 (15:08 +0800)
calendar/set.php

index 447547e..020a636 100644 (file)
@@ -41,7 +41,7 @@
 require_once('../config.php');
 require_once($CFG->dirroot.'/calendar/lib.php');
 
-$from = required_param('return', PARAM_ALPHA);
+$return = required_param('return', PARAM_URL);
 $var = required_param('var', PARAM_ALPHA);
 
 $url = new moodle_url('/calendar/set.php', array('return'=>$return,'var'=>$var));