diff options
author | 2005-10-24 04:47:50 +0000 | |
---|---|---|
committer | 2005-10-24 04:47:50 +0000 | |
commit | 46c89016520cf272223cba52e704388fa94b4392 (patch) | |
tree | 7fabf7e470cb3609bd6bbdd40a1c23463a10e5e0 /token.cgi | |
parent | Bug 312787 When strict_isolation is set, do not permit users to alter deps on... (diff) | |
download | bugzilla-46c89016520cf272223cba52e704388fa94b4392.tar.gz bugzilla-46c89016520cf272223cba52e704388fa94b4392.tar.bz2 bugzilla-46c89016520cf272223cba52e704388fa94b4392.zip |
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(); |