From bee41f23eeb8c2759c8a7274b6a70fb5e25f3c32 Mon Sep 17 00:00:00 2001 From: moodler Date: Sun, 12 Dec 2004 07:01:35 +0000 Subject: [PATCH] Merged sc28 from stable --- doc/index.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/index.php b/doc/index.php index 329ab31c35..da7bf50def 100644 --- a/doc/index.php +++ b/doc/index.php @@ -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(); -- 2.39.5