diff options
author | lpsolit%gmail.com <> | 2005-10-24 06:47:50 +0200 |
---|---|---|
committer | lpsolit%gmail.com <> | 2005-10-24 06:47:50 +0200 |
commit | 46c89016520cf272223cba52e704388fa94b4392 (patch) | |
tree | 7fabf7e470cb3609bd6bbdd40a1c23463a10e5e0 /token.cgi | |
parent | d0042bb7c9340ef4dd80b3abe3b2f45ed4bf862b (diff) | |
download | bugzilla-46c89016520cf272223cba52e704388fa94b4392.tar.gz bugzilla-46c89016520cf272223cba52e704388fa94b4392.tar.xz |
Bug 312307: Misused Throw*Error tags in code and templates - Patch by Dennis Melentyev <dennis.melentyev@infopulse.com.ua> r=LpSolit a=justdave
Diffstat (limited to 'token.cgi')
-rwxr-xr-x | token.cgi | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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(); |