Skip to content

Commit

Permalink
Added some cleaning to the category path for some safety.
Browse files Browse the repository at this point in the history
  • Loading branch information
thepurpleblob committed Jan 5, 2007
1 parent 8a45fcd commit dd0730c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/questionlib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1603,6 +1603,7 @@ function question_categorylist($categoryid) {
* @return mixed category object or null if fails
*/
function create_category_path( $catpath, $delimiter='/', $courseid=0 ) {
$catpath = clean_param( $catpath,PARAM_PATH );
$catnames = explode( $delimiter, $catpath );
$parent = 0;
$category = null;
Expand Down

0 comments on commit dd0730c

Please sign in to comment.