From f5fa70c488c1fe4ad162a9f39b074cf16bde3200 Mon Sep 17 00:00:00 2001 From: moodler Date: Mon, 27 Sep 2004 01:48:24 +0000 Subject: [PATCH] Closed script security problem (merged from STABLE) --- doc/index.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/doc/index.php b/doc/index.php index 46be9c2742..329ab31c35 100644 --- a/doc/index.php +++ b/doc/index.php @@ -5,16 +5,11 @@ optional_variable($file, ""); // docs file to view optional_variable($frame, ""); // docs file to view optional_variable($sub, ""); // sub-section (named anchor) - optional_variable($lang, ""); // override current language if ($CFG->forcelogin) { require_login(); } - if (!empty($lang)) { - $SESSION->lang = $lang; - } - if (!empty($sub)) { $sub = "#$sub"; } else { -- 2.39.5