248
251
# integer representing an existing bug that the user is authorized
249
252
# to access, and make sure the number of votes submitted is also
250
253
# a non-negative integer (a series of digits not preceded by a
253
256
foreach my $id (@buglist) {
255
259
$votes{$id} = $cgi->param($id);
256
260
detaint_natural($votes{$id})
257
261
|| ThrowUserError("votes_must_be_nonnegative");