diff options
| author | Juuso Lapinlampi <wub@partyvan.eu> | 2016-05-29 10:41:06 +0200 |
|---|---|---|
| committer | Juuso Lapinlampi <wub@partyvan.eu> | 2016-05-29 10:48:38 +0200 |
| commit | 18f66c8f9c8586a4aa5dcb38097b13730ec298cf (patch) | |
| tree | cb81bc4b2d187dc6d24faecd07e201dbfafe8da2 /static/includes/database.inc.php | |
| parent | e52deaa93064294e6e5ab016c6c02180406497bc (diff) | |
Response: Return 500 Internal Server Error on error()
Fix a bug where Response class `error()` function may blow up and return
an invalid HTTP status code `42` if `PDO::ATTR_ERRMODE` is set to
`PDO::ERRMODE_EXCEPTION` during PDO initialization or query. By default,
it is implicitly set to `PDO::ERRMODE_SILENT`.
This bug can occur when a MySQL server is running, but encounters an
error post-login (e.g. table doesn't exist).
Diffstat (limited to 'static/includes/database.inc.php')
0 files changed, 0 insertions, 0 deletions
