Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

use PARAM_ALPHANUM on "section" parameter so that "section=all" is al…

…lowed
  • Loading branch information...
commit 1a6a597fff9de30219e400463192f063ba0d1cb2 1 parent 9df49de
gbateson authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 mod/hotpot/index.php
View
7 mod/hotpot/index.php
@@ -45,7 +45,12 @@
$next_url = "$CFG->wwwroot/course/view.php?id=$course->id";
// get display section, if any
- $section = optional_param('section', 0, PARAM_INT);
+ $section = optional_param('section', 0, PARAM_ALPHANUM);
+ if ($section=='all') {
+ // do nothing
+ } else {
+ $section = intval($section);
+ }
if ($section) {
$displaysection = course_set_display($course->id, $section);
} else {

0 comments on commit 1a6a597

Please sign in to comment.
Something went wrong with that request. Please try again.