mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-28 02:09:21 +02:00
Security: Fixed leaking database password when can't connect
This fixes this: https://otland.net/threads/myaac-leaking-user-database-password.266095/ Instead now, the error will be logged.
This commit is contained in:
parent
1970a00bb6
commit
a55ec208aa
@ -110,12 +110,10 @@ defined('MYAAC') or die('Direct access not allowed!');
|
|||||||
return; // installer will take care of this
|
return; // installer will take care of this
|
||||||
}
|
}
|
||||||
|
|
||||||
die('ERROR: Cannot connect to MySQL database.<br/>' .
|
throw new SensitiveException('ERROR: Cannot connect to MySQL database.' . PHP_EOL .
|
||||||
'Possible reasons:' .
|
'Possible reasons:' . PHP_EOL .
|
||||||
'<ul>' .
|
' * MySQL is not configured propertly in config.lua.' . PHP_EOL .
|
||||||
'<li>MySQL is not configured propertly in <i>config.lua</i>.</li>' .
|
' * MySQL server is not running.' . PHP_EOL .
|
||||||
'<li>MySQL server is not running.</li>' .
|
$error->getMessage());
|
||||||
'</ul>' . $error);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
|
Loading…
x
Reference in New Issue
Block a user