]> git.donarmstrong.com Git - debbugs.git/commitdiff
skip undefined includes/excludes
authorDon Armstrong <don@donarmstrong.com>
Thu, 28 Jun 2007 05:37:50 +0000 (22:37 -0700)
committerDon Armstrong <don@donarmstrong.com>
Thu, 28 Jun 2007 05:37:50 +0000 (22:37 -0700)
cgi/pkgreport.cgi

index 731b4154ebef6269137e6dac9e6fb3c19ef1801a..c36f9f68b8623f8bc0b1b00c7fd6c040a5ff144a 100755 (executable)
@@ -749,11 +749,13 @@ sub pkg_htmlizebugs {
     my %include;
     my %exclude;
     for my $include (make_list($param{include})) {
+        next unless defined $include;
         my ($key,$value) = split /\s*:\s*/,$include,2;
         next unless defined $value;
         push @{$include{$key}}, split /\s*,\s*/, $value;
     }
     for my $exclude (make_list($param{exclude})) {
+        next unless defined $exclude;
         my ($key,$value) = split /\s*:\s*/,$exclude,2;
         next unless defined $value;
         push @{$exclude{$key}}, split /\s*,\s*/, $value;