From 98fe072336b3cd8a2b6fc64a8a2d0183d8448a92 Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Mon, 2 Feb 2015 07:57:22 -0500 Subject: Bug 1128245 - upgrading from v4.4.6 to v5.0rc2 fails on connection problem with MySQL --- Bugzilla/Config.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Bugzilla/Config.pm') 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 -- cgit v1.2.3-24-g4f1b