diff options
author | terry%mozilla.org <> | 1999-05-25 04:42:28 +0200 |
---|---|---|
committer | terry%mozilla.org <> | 1999-05-25 04:42:28 +0200 |
commit | 0c8cd681e39278f601d4c0c6ceaadb3a8bc155ff (patch) | |
tree | 799cda4b1c18055866ad37801dea5477be2d3e85 /CGI.pl | |
parent | 9c5e52a400a85b718bdcdf76dc9ae433c1eca814 (diff) | |
download | bugzilla-0c8cd681e39278f601d4c0c6ceaadb3a8bc155ff.tar.gz bugzilla-0c8cd681e39278f601d4c0c6ceaadb3a8bc155ff.tar.xz |
Make sure login name is in canonical form.
Diffstat (limited to 'CGI.pl')
-rw-r--r-- | CGI.pl | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -282,7 +282,8 @@ sub quietly_check_login() { if (defined $::COOKIE{"Bugzilla_login"} && defined $::COOKIE{"Bugzilla_logincookie"}) { ConnectToDatabase(); - SendSQL("select profiles.groupset, profiles.login_name = " . + SendSQL("select profiles.groupset, profiles.login_name, " . + "profiles.login_name = " . SqlQuote($::COOKIE{"Bugzilla_login"}) . " and profiles.cryptpassword = logincookies.cryptpassword " . "and logincookies.hostname = " . @@ -292,9 +293,11 @@ sub quietly_check_login() { " and profiles.userid = logincookies.userid"); my @row; if (@row = FetchSQLData()) { - $loginok = $row[1]; + $loginok = $row[2]; if ($loginok) { $::usergroupset = $row[0]; + $::COOKIE{"Bugzilla_login"} = $row[1]; # Makes sure case is in + # canonical form. } } } |