diff options
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/Token.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Bugzilla/Token.pm b/Bugzilla/Token.pm index 2d5dad2a3..185884c98 100644 --- a/Bugzilla/Token.pm +++ b/Bugzilla/Token.pm @@ -52,7 +52,7 @@ sub IssuePasswordToken { # Generate a unique token and insert it into the tokens table. # We have to lock the tokens table before generating the token, # since the database must be queried for token uniqueness. - &::SendSQL("LOCK TABLE tokens WRITE"); + &::SendSQL("LOCK TABLES tokens WRITE"); my $token = GenerateUniqueToken(); my $quotedtoken = &::SqlQuote($token); my $quotedipaddr = &::SqlQuote($::ENV{'REMOTE_ADDR'}); @@ -166,7 +166,7 @@ Cancelled Because: $cancelaction close SENDMAIL; # Delete the token from the database. - &::SendSQL("LOCK TABLE tokens WRITE"); + &::SendSQL("LOCK TABLES tokens WRITE"); &::SendSQL("DELETE FROM tokens WHERE token = $quotedtoken"); &::SendSQL("UNLOCK TABLES"); } |