]> git.mjollnir.org Git - moodle.git/commitdiff
Merged sc28 from stable
authormoodler <moodler>
Sun, 12 Dec 2004 07:01:35 +0000 (07:01 +0000)
committermoodler <moodler>
Sun, 12 Dec 2004 07:01:35 +0000 (07:01 +0000)
doc/index.php

index 329ab31c35a8291c4081dcbd45ed978eb51883ac..da7bf50def46833178ae009aeb958f2ae7f9900d 100644 (file)
@@ -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();