From: moodler <moodler> Date: Mon, 27 Sep 2004 12:52:25 +0000 (+0000) Subject: Merged change from STABLE, to fix possible $auth variable problem X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=ce791f885e5ec2d7dccce103171b68b72484bb87;p=moodle.git Merged change from STABLE, to fix possible $auth variable problem --- 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 }