Merged change from STABLE, to fix possible $auth variable problem
authormoodler <moodler>
Mon, 27 Sep 2004 12:52:25 +0000 (12:52 +0000)
committermoodler <moodler>
Mon, 27 Sep 2004 12:52:25 +0000 (12:52 +0000)
lib/moodlelib.php

index e75e65a..c85a0df 100644 (file)
@@ -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
     }