Do safety check on $auth pathname before doing include. Thanks, Petr Skoda!

This commit is contained in:
moodler
2004-09-27 12:50:23 +00:00
parent 2003a0d463
commit 69a791b831
+4
View File
@@ -821,6 +821,10 @@ function authenticate_user_login($username, $password) {
$auth = $user->auth;
}
if (detect_munged_arguments($auth, 0)) { // For safety on the next require
return false;
}
if (!file_exists("$CFG->dirroot/auth/$auth/lib.php")) {
$auth = "manual"; // Can't find auth module, default to internal
}