]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 906745 - In MySQL, tokens are not case-sensitive, reducing total entropy and...
authorDave Lawrence <dlawrence@mozilla.com>
Wed, 16 Oct 2013 16:27:00 +0000 (12:27 -0400)
committerDave Lawrence <dlawrence@mozilla.com>
Wed, 16 Oct 2013 16:27:00 +0000 (12:27 -0400)
r=LpSolit,a=sgreen

token.cgi

index ae9800d727a7ab4c2996b6fcd6ed72fba081891a..901094be4de3c65734b24f1b74984b0622484a54 100755 (executable)
--- a/token.cgi
+++ b/token.cgi
@@ -69,7 +69,7 @@ if ($token) {
   # Make sure the token exists in the database.
   my ($db_token, $tokentype) = $dbh->selectrow_array('SELECT token, tokentype FROM tokens
                                                        WHERE token = ?', undef, $token);
-  (defined $db_token && $db_token eq $token && $tokentype)
+  (defined $db_token && $db_token eq $token)
     || ThrowUserError("token_does_not_exist");
 
   # Make sure the token is the correct type for the action being taken.