]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Patch for bug 161369: Strip trailing whitespace from login usernames; patch by Paul...
authorjocuri%softhome.net <>
Fri, 3 Mar 2006 20:29:07 +0000 (20:29 +0000)
committerjocuri%softhome.net <>
Fri, 3 Mar 2006 20:29:07 +0000 (20:29 +0000)
Bugzilla/Auth/Login/WWW/CGI.pm

index a697a623fbb461328743f9c22ef4fd81bfeba639..5030691e3647f20f65db0a828db5a3829343323b 100644 (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');