Merged filename checks from stable

This commit is contained in:
moodler
2004-09-29 05:35:04 +00:00
parent feaecbfe48
commit 1ca84b296f
3 changed files with 11 additions and 6 deletions
+6 -5
View File
@@ -48,11 +48,12 @@
$options[$module] = get_string("auth_$module"."title", "auth");
}
asort($options);
if (isset($_GET['auth'])) {
$auth = $_GET['auth'];
} else {
$auth = $config->auth;
}
if (isset($_GET['auth'])) {
$auth = $_GET['auth'];
} else {
$auth = $config->auth;
}
$auth = clean_filename($auth);
require_once("$CFG->dirroot/auth/$auth/lib.php"); //just to make sure that current authentication functions are loaded
if (! isset($config->guestloginbutton)) {
$config->guestloginbutton = 1;