Patch for bug 161369: Strip trailing whitespace from login usernames; patch by Paul <pdemarco@zoominternet.net>, r=vladd, a=justdave.

This commit is contained in:
jocuri%softhome.net 2006-03-03 12:29:07 +00:00
parent 6e58adeceb
commit 51169c7a19

View File

@ -49,7 +49,7 @@ sub login {
my $dbh = Bugzilla->dbh;
# First, try the actual login method against form variables
my $username = $cgi->param("Bugzilla_login");
my $username = trim($cgi->param("Bugzilla_login"));
my $passwd = $cgi->param("Bugzilla_password");
$cgi->delete('Bugzilla_login', 'Bugzilla_password');