]> 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:25:10 +0000 (12:25 -0400)
committerDave Lawrence <dlawrence@mozilla.com>
Wed, 16 Oct 2013 16:25:10 +0000 (12:25 -0400)
r=LpSolit,a=sgreen

token.cgi

index 9e051bb39991b06392d4821e1f0f6a79b69f94d9..65b0df8bf3c3f48dd03784a61972447a56c3c58f 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.