summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Config.pm
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2015-02-02 13:57:22 +0100
committerDylan William Hardison <dylan@hardison.net>2015-02-02 14:00:18 +0100
commit98fe072336b3cd8a2b6fc64a8a2d0183d8448a92 (patch)
tree829b559fa3786936b0f1507e1228e8745549f8d4 /Bugzilla/Config.pm
parentc104aa56a22c1806cbfffb1a9d091647c85555f5 (diff)
downloadbugzilla-98fe072336b3cd8a2b6fc64a8a2d0183d8448a92.tar.gz
bugzilla-98fe072336b3cd8a2b6fc64a8a2d0183d8448a92.tar.xz
Bug 1128245 - upgrading from v4.4.6 to v5.0rc2 fails on connection problem with MySQL
Diffstat (limited to 'Bugzilla/Config.pm')
-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