Closed script security problem (merged from STABLE)

This commit is contained in:
moodler
2004-09-27 01:48:24 +00:00
parent c2095d7290
commit f5fa70c488
-5
View File
@@ -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 {