Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…lowed
  • Loading branch information...
commit b72135d360ced0d8c423eba0e24585b3f383f697 1 parent 844aed0
gbateson authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 mod/hotpot/index.php
7 mod/hotpot/index.php
View
@@ -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 {
Please sign in to comment.
Something went wrong with that request. Please try again.