Permalink
Browse files

Better checking of arguments (SC28)

  • Loading branch information...
1 parent 7839870 commit 8fcd89c3ab7f48fd1b0fb67c46bf11c9aaba7cb4 moodler committed Dec 12, 2004
Showing with 3 additions and 3 deletions.
  1. +3 −3 doc/index.php
View
@@ -2,9 +2,9 @@
require("../config.php");
- optional_variable($file, ""); // docs file to view
- optional_variable($frame, ""); // docs file to view
- optional_variable($sub, ""); // sub-section (named anchor)
+ $file = optional_param('file', "", PARAM_FILE); // docs file to view straight
+ $frame = optional_param('frame', "", PARAM_FILE); // docs file to view in frame
+ $sub = optional_param('sub', "", PARAM_CLEAN); // sub-section (named anchor)
if ($CFG->forcelogin) {
require_login();

0 comments on commit 8fcd89c

Please sign in to comment.