Skip to content

Commit

Permalink
MDL-26196 fix param validation
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Jan 30, 2011
1 parent 8cdc85a commit 73de6fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tag/coursetags_more.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
require_once($CFG->dirroot.'/tag/coursetagslib.php');
require_once($CFG->dirroot.'/tag/lib.php');

$sort = optional_param('sort', 'alpha', PARAM_TEXT); //alpha, date or popularity
$show = optional_param('show', 'all', PARAM_TEXT); //all, my, official, community or course
$sort = optional_param('sort', 'alpha', PARAM_ALPHA); //alpha, date or popularity
$show = optional_param('show', 'all', PARAM_ALPHA); //all, my, official, community or course
$courseid = optional_param('courseid', 0, PARAM_INT);

$url = new moodle_url('/tag/coursetags_more.php');
Expand Down

0 comments on commit 73de6fa

Please sign in to comment.