MDL-33040 Validate dates correctly on log page
authorAndrew Robert Nicols <andrew.nicols@luns.net.uk>
Wed, 16 May 2012 12:52:11 +0000 (13:52 +0100)
committerAndrew Robert Nicols <andrew.nicols@luns.net.uk>
Wed, 16 May 2012 12:52:11 +0000 (13:52 +0100)
report/log/index.php

index c0a94fe..a672f2a 100644 (file)
@@ -42,7 +42,7 @@ if (empty($host_course)) {
 
 $group       = optional_param('group', 0, PARAM_INT); // Group to display
 $user        = optional_param('user', 0, PARAM_INT); // User to display
-$date        = optional_param('date', 0, PARAM_FILE); // Date to display - number or some string
+$date        = optional_param('date', 0, PARAM_INT); // Date to display
 $modname     = optional_param('modname', '', PARAM_PLUGIN); // course_module->id
 $modid       = optional_param('modid', 0, PARAM_FILE); // number or 'site_errors'
 $modaction   = optional_param('modaction', '', PARAM_PATH); // an action as recorded in the logs