changed filename cleaning from PARAM_CLEANFILE to PARAM_FILE

This commit is contained in:
thepurpleblob
2006-03-08 13:12:46 +00:00
parent 5496f50cae
commit 5a4bcbc37c
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -14,8 +14,8 @@
$categoryid = optional_param('category',0, PARAM_INT);
$courseid = required_param('courseid',PARAM_INT);
$format = optional_param('format','', PARAM_CLEANFILE );
$exportfilename = optional_param('exportfilename','',PARAM_CLEANFILE );
$format = optional_param('format','', PARAM_FILE );
$exportfilename = optional_param('exportfilename','',PARAM_FILE );
if (! $course = get_record("course", "id", $courseid)) {
error("Course does not exist!");
+1 -1
View File
@@ -14,7 +14,7 @@
$categoryid = optional_param('category', 0, PARAM_INT);
$courseid = optional_param('course', 0, PARAM_INT);
$format = optional_param('format','',PARAM_CLEANFILE);
$format = optional_param('format','',PARAM_FILE);
if (!$categoryid) { // try to get category from modform
$showcatmenu = true; // will ensure that user can choose category