]> git.donarmstrong.com Git - debbugs.git/commitdiff
fix tags normalization in pkgreport.cgi
authorDon Armstrong <don@donarmstrong.com>
Fri, 16 Apr 2010 17:06:52 +0000 (10:06 -0700)
committerDon Armstrong <don@donarmstrong.com>
Fri, 16 Apr 2010 17:06:52 +0000 (10:06 -0700)
cgi/pkgreport.cgi

index 1666bbc6f7191a926f516bcd29e46bde2d20b664..b70a5cb6b997dd06ee3629471fe055ec2b90384b 100755 (executable)
@@ -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})];
 }