elsif (defined @$glob) {
$localconfig{$var} = \@$glob;
}
- elsif (defined %$glob) {
+ elsif (%$glob) {
$localconfig{$var} = \%$glob;
}
}
<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
[% IF products.size %]
<form name="voting_form" method="post" action="votes.cgi">
<input type="hidden" name="action" value="vote">
+ <input type="hidden" name="token" value="[% issue_hash_token(['vote']) FILTER html %]">
<table cellspacing="4">
<tr>
<td></td>
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
############################################################################