Skip to content

Commit

Permalink
Merged change from STABLE, to fix possible $auth variable problem
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed Sep 27, 2004
1 parent 4037263 commit ce791f8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/moodlelib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit ce791f8

Please sign in to comment.