From ce791f885e5ec2d7dccce103171b68b72484bb87 Mon Sep 17 00:00:00 2001 From: moodler Date: Mon, 27 Sep 2004 12:52:25 +0000 Subject: [PATCH] Merged change from STABLE, to fix possible $auth variable problem --- lib/moodlelib.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/moodlelib.php b/lib/moodlelib.php index e75e65a244..c85a0dff1a 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -1208,6 +1208,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 } -- 2.39.5