bug 134562 - taint error in buglist.cgi

r=justdave, gerv
parent 8c43fccb
......@@ -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');
}
################################################################################
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment