summaryrefslogtreecommitdiffstats
path: root/token.cgi
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2005-10-24 06:47:50 +0200
committerlpsolit%gmail.com <>2005-10-24 06:47:50 +0200
commit46c89016520cf272223cba52e704388fa94b4392 (patch)
tree7fabf7e470cb3609bd6bbdd40a1c23463a10e5e0 /token.cgi
parentd0042bb7c9340ef4dd80b3abe3b2f45ed4bf862b (diff)
downloadbugzilla-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-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();