]> git.donarmstrong.com Git - debbugs.git/commitdiff
[project @ 2003-09-16 20:57:19 by doogie]
authordoogie <>
Wed, 17 Sep 2003 03:57:19 +0000 (19:57 -0800)
committerdoogie <>
Wed, 17 Sep 2003 03:57:19 +0000 (19:57 -0800)
Fix checking for invalid include/exclude key.

cgi/common.pl

index ada69ecccc9cbaee2ea0ecc40305357e10baabc5..0b2a2c028cb0418e0564584aaadc22af5230f865 100644 (file)
@@ -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];
     }
 }