From: jocuri%softhome.net <> Date: Fri, 3 Mar 2006 20:29:07 +0000 (+0000) Subject: Patch for bug 161369: Strip trailing whitespace from login usernames; patch by Paul... X-Git-Tag: bugzilla-2.23.1~85 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd167ee816eedcdfe0d3c2f8bcd7c5807bdf3018;p=thirdparty%2Fbugzilla.git Patch for bug 161369: Strip trailing whitespace from login usernames; patch by Paul , r=vladd, a=justdave. --- diff --git a/Bugzilla/Auth/Login/WWW/CGI.pm b/Bugzilla/Auth/Login/WWW/CGI.pm index a697a623fb..5030691e36 100644 --- a/Bugzilla/Auth/Login/WWW/CGI.pm +++ b/Bugzilla/Auth/Login/WWW/CGI.pm @@ -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');