<form action="votes.cgi" method="post">
<input type="hidden" name="action" value="vote">
+ <input type="hidden" name="token" value="[% issue_hash_token(['vote']) FILTER html %]">
<p>
<input type="radio" name="delete_all_votes" value="1">
Yes, delete all my votes
use Bugzilla::Bug;
use Bugzilla::User;
use Bugzilla::Product;
+use Bugzilla::Token;
use List::Util qw(min);
|| ThrowUserError("votes_must_be_nonnegative");
}
+ my $token = $cgi->param('token');
+ check_hash_token($token, ['vote']);
+
############################################################################
# End Data/Security Validation
############################################################################