From: doogie <> Date: Wed, 17 Sep 2003 03:57:19 +0000 (-0800) Subject: [project @ 2003-09-16 20:57:19 by doogie] X-Git-Tag: release/2.6.0~793 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=6f713896c880895840c0a63b3ea1b3a1dc3db284;p=debbugs.git [project @ 2003-09-16 20:57:19 by doogie] Fix checking for invalid include/exclude key. --- diff --git a/cgi/common.pl b/cgi/common.pl index ada69ec..0b2a2c0 100644 --- a/cgi/common.pl +++ b/cgi/common.pl @@ -94,7 +94,7 @@ sub filter_include_exclude($\%) { if (/^([^:]*):(.*)$/) { if ($1 eq 'subj') { ['subject', $2]; } else { [$1, $2] } } else { ['tags', $_] } } split /[\s,]+/, join ',', @vals; foreach my $data (@data) { - &quitcgi("Invalid filter key: '$data->[0]'") if (!exists($filter_map->{$data->[0]})); + &quitcgi("Invalid filter key: '$data->[0]'") if (!exists($field_match{$data->[0]})); push @{$filter_map->{$data->[0]}}, $data->[1]; } }