summaryrefslogtreecommitdiffstats
path: root/token.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'token.cgi')
-rwxr-xr-xtoken.cgi6
1 files changed, 2 insertions, 4 deletions
diff --git a/token.cgi b/token.cgi
index 6b2eb2b64..3c818bc23 100755
--- a/token.cgi
+++ b/token.cgi
@@ -67,10 +67,8 @@ if ($cgi->param('t')) {
$::token = $cgi->param('t');
# Make sure the token contains only valid characters in the right amount.
- my $validationerror = ValidatePassword($::token);
- if ($validationerror) {
- ThrowUserError("token_invalid");
- }
+ # Validate password will throw an error if token is invalid
+ ValidatePassword($::token);
trick_taint($::token); # Only used in placeholders
Bugzilla::Token::CleanTokenTable();