From: Don Armstrong Date: Fri, 16 Apr 2010 17:06:52 +0000 (-0700) Subject: fix tags normalization in pkgreport.cgi X-Git-Tag: release/2.6.0~418^2 X-Git-Url: https://git.donarmstrong.com/?p=debbugs.git;a=commitdiff_plain;h=e910f5ba8f8d11a9a23b35f7bea7e667beddec6b fix tags normalization in pkgreport.cgi --- diff --git a/cgi/pkgreport.cgi b/cgi/pkgreport.cgi index 1666bbc..b70a5cb 100755 --- a/cgi/pkgreport.cgi +++ b/cgi/pkgreport.cgi @@ -79,7 +79,7 @@ if (exists $param{form_options} and defined $param{form_options}) { for my $incexc (qw(include exclude)) { next unless exists $param{$incexc}; # normalize tag to tags - $param{$incexc} = [map {s/^tag:/tags:/} grep /\S\:\S/, make_list($param{$incexc})]; + $param{$incexc} = [map {s/^tag:/tags:/; $_} grep /\S\:\S/, make_list($param{$incexc})]; } for my $key (keys %package_search_keys) { next unless exists $param{key}; @@ -100,7 +100,7 @@ if (exists $param{form_options} and defined $param{form_options}) { for my $incexc (qw(include exclude)) { next unless exists $param{$incexc}; # normalize tag to tags - $param{$incexc} = [map {s/^tag:/tags:/} make_list($param{$incexc})]; + $param{$incexc} = [map {s/^tag:/tags:/; $_} make_list($param{$incexc})]; }