From 689f76e37a3958097b3e1d88561b9a8d19f1f41a Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Mon, 2 Feb 2015 07:57:22 -0500 Subject: [PATCH] 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(-) diff --git a/Bugzilla/Config.pm b/Bugzilla/Config.pm index fdbedbdc04..1e22b52397 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 -- 2.47.2