summaryrefslogtreecommitdiffstats
path: root/CGI.pl
diff options
context:
space:
mode:
authorterry%mozilla.org <>1999-05-25 04:42:28 +0200
committerterry%mozilla.org <>1999-05-25 04:42:28 +0200
commit0c8cd681e39278f601d4c0c6ceaadb3a8bc155ff (patch)
tree799cda4b1c18055866ad37801dea5477be2d3e85 /CGI.pl
parent9c5e52a400a85b718bdcdf76dc9ae433c1eca814 (diff)
downloadbugzilla-0c8cd681e39278f601d4c0c6ceaadb3a8bc155ff.tar.gz
bugzilla-0c8cd681e39278f601d4c0c6ceaadb3a8bc155ff.tar.xz
Make sure login name is in canonical form.
Diffstat (limited to 'CGI.pl')
-rw-r--r--CGI.pl7
1 files changed, 5 insertions, 2 deletions
diff --git a/CGI.pl b/CGI.pl
index 595c8ab32..68bb7edca 100644
--- a/CGI.pl
+++ b/CGI.pl
@@ -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.
}
}
}