From 56616b805f777532828dd1de0bd6f3969171ffb9 Mon Sep 17 00:00:00 2001 From: tobi132 Date: Tue, 3 Dec 2019 00:51:14 +0100 Subject: [PATCH] Revert "Security: Fixed leaking database password when can't connect" This reverts commit a55ec208aad98c2179b619bc8727a3445efd4888. --- system/database.php | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/system/database.php b/system/database.php index e5e9657b..d0f3fbda 100644 --- a/system/database.php +++ b/system/database.php @@ -110,10 +110,12 @@ defined('MYAAC') or die('Direct access not allowed!'); return; // installer will take care of this } - throw new SensitiveException('ERROR: Cannot connect to MySQL database.' . PHP_EOL . - 'Possible reasons:' . PHP_EOL . - ' * MySQL is not configured propertly in config.lua.' . PHP_EOL . - ' * MySQL server is not running.' . PHP_EOL . - $error->getMessage()); + die('ERROR: Cannot connect to MySQL database.
' . + 'Possible reasons:' . + '' . $error); - } \ No newline at end of file + } +?> \ No newline at end of file