From 01dba5580a90addf0aee2d70c5bc0872c848eef4 Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Wed, 27 Jun 2007 22:37:50 -0700 Subject: [PATCH] skip undefined includes/excludes --- cgi/pkgreport.cgi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cgi/pkgreport.cgi b/cgi/pkgreport.cgi index 731b4154..c36f9f68 100755 --- a/cgi/pkgreport.cgi +++ b/cgi/pkgreport.cgi @@ -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; -- 2.39.5