mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +02:00
Revert "Security: Fixed leaking database password when can't connect"
This reverts commit a55ec208aad98c2179b619bc8727a3445efd4888.
This commit is contained in:
parent
b9729ad763
commit
56616b805f
@ -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.<br/>' .
|
||||
'Possible reasons:' .
|
||||
'<ul>' .
|
||||
'<li>MySQL is not configured propertly in <i>config.lua</i>.</li>' .
|
||||
'<li>MySQL server is not running.</li>' .
|
||||
'</ul>' . $error);
|
||||
|
||||
}
|
||||
}
|
||||
?>
|
Loading…
x
Reference in New Issue
Block a user