summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Bugzilla/Config.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/Bugzilla/Config.pm b/Bugzilla/Config.pm
index fdbedbdc0..1e22b5239 100644
--- a/Bugzilla/Config.pm
+++ b/Bugzilla/Config.pm
@@ -335,7 +335,9 @@ sub read_param_file {
die "Error parsing $file: $error_msg";
}
# JSON::XS doesn't detaint data for us.
- trick_taint($params{$_}) foreach keys %params;
+ foreach my $key (keys %params) {
+ trick_taint($params{$key}) if defined $params{$key};
+ }
}
elsif ($ENV{'SERVER_SOFTWARE'}) {
# We're in a CGI, but the params file doesn't exist. We can't