diff options
author | 2010-11-02 16:39:57 -0700 | |
---|---|---|
committer | 2010-11-02 16:39:57 -0700 | |
commit | 6fbfafbbec8ada22dde6903d0e02f9d3876fa1c1 (patch) | |
tree | 8b3f62a677e87c4ff52dff7e0148c426df5209c6 /Bugzilla/DB.pm | |
parent | Bug 600464: (CVE-2010-3172) [SECURITY] Content/Header injection due to non-ra... (diff) | |
download | bugzilla-6fbfafbbec8ada22dde6903d0e02f9d3876fa1c1.tar.gz bugzilla-6fbfafbbec8ada22dde6903d0e02f9d3876fa1c1.tar.bz2 bugzilla-6fbfafbbec8ada22dde6903d0e02f9d3876fa1c1.zip |
The changes to bz_create_database done by the SQLite patch broke the
creation of databases on other systems. This restores the original
behavior while still retaining the correct error-throwing behavior
for systems that can't create a SQLite database.
https://bugzilla.mozilla.org/show_bug.cgi?id=337776
Diffstat (limited to 'Bugzilla/DB.pm')
-rw-r--r-- | Bugzilla/DB.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla/DB.pm b/Bugzilla/DB.pm index ae9fffd3a..0a3123ee9 100644 --- a/Bugzilla/DB.pm +++ b/Bugzilla/DB.pm @@ -232,7 +232,7 @@ EOT sub bz_create_database { my $dbh; # See if we can connect to the actual Bugzilla database. - my $conn_success = $dbh = connect_main(); + my $conn_success = eval { $dbh = connect_main() }; my $db_name = Bugzilla->localconfig->{db_name}; if (!$conn_success) { |