diff options
author | mkanat%kerio.com <> | 2005-07-08 11:31:41 +0200 |
---|---|---|
committer | mkanat%kerio.com <> | 2005-07-08 11:31:41 +0200 |
commit | 4f25eedf9065f28badf1e5e1df6c925062d8279e (patch) | |
tree | 01adc7e1f641b2104a5177bd84ad4ab084e71dda /token.cgi | |
parent | 6bff5c39e564cc34c85c4d30e11f6ff14482548a (diff) | |
download | bugzilla-4f25eedf9065f28badf1e5e1df6c925062d8279e.tar.gz bugzilla-4f25eedf9065f28badf1e5e1df6c925062d8279e.tar.xz |
Bug 285695: [PostgreSQL] Username checks for login, etc. need to be case insensitive
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=justdave
Diffstat (limited to 'token.cgi')
-rwxr-xr-x | token.cgi | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -36,6 +36,7 @@ use Bugzilla::Constants; use Bugzilla::Auth; my $cgi = Bugzilla->cgi; +my $dbh = Bugzilla->dbh; # Include the Bugzilla CGI and general utility library. require "CGI.pl"; @@ -114,7 +115,8 @@ if ( $::action eq 'reqpw' ) { CheckEmailSyntax($cgi->param('loginname')); my $quotedloginname = SqlQuote($cgi->param('loginname')); - SendSQL("SELECT userid FROM profiles WHERE login_name = $quotedloginname"); + SendSQL("SELECT userid FROM profiles WHERE " . + $dbh->sql_istrcmp('login_name', $quotedloginname)); FetchSQLData() || ThrowUserError("account_inexistent"); } |