]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1128245 - upgrading from v4.4.6 to v5.0rc2 fails on connection problem with MySQL
authorDylan William Hardison <dylan@hardison.net>
Mon, 2 Feb 2015 12:57:22 +0000 (07:57 -0500)
committerDylan William Hardison <dylan@hardison.net>
Mon, 2 Feb 2015 13:00:18 +0000 (08:00 -0500)
Bugzilla/Config.pm

index fdbedbdc04448491372d080ea2c99d5eba1a90b2..1e22b5239730e23444842c438d1dc50a368b3bbb 100644 (file)
@@ -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