aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2005-10-24 04:47:50 +0000
committerlpsolit%gmail.com <>2005-10-24 04:47:50 +0000
commit46c89016520cf272223cba52e704388fa94b4392 (patch)
tree7fabf7e470cb3609bd6bbdd40a1c23463a10e5e0 /token.cgi
parentBug 312787 When strict_isolation is set, do not permit users to alter deps on... (diff)
downloadbugzilla-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-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();