bug 134562 - taint error in buglist.cgi

r=justdave, gerv
This commit is contained in:
bbaetz%student.usyd.edu.au 2002-04-05 07:48:27 +00:00
parent 481e4a3df7
commit 0e88fdc06a

View File

@ -1226,8 +1226,12 @@ else {
# Add the votes column to the list of columns to be displayed
# in the bug list if the user is searching for bugs with a certain
# number of votes and the votes column is not already on the list.
push(@displaycolumns, 'votes')
if $::FORM{'votes'} && !grep($_ eq 'votes', @displaycolumns);
# Some versions of perl will taint 'votes' if this is done as a single
# statement, because $::FORM{'votes'} is tainted at this point
if (trim($::FORM{'votes'}) && !grep($_ eq 'votes', @displaycolumns)) {
push(@displaycolumns, 'votes');
}
################################################################################