From 46c89016520cf272223cba52e704388fa94b4392 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Mon, 24 Oct 2005 04:47:50 +0000 Subject: Bug 312307: Misused Throw*Error tags in code and templates - Patch by Dennis Melentyev r=LpSolit a=justdave --- token.cgi | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'token.cgi') 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(); -- cgit v1.2.3-24-g4f1b