Escape error message

Because of the "Maybe you have characters before an opening <?php tag?" error
This commit is contained in:
Pierre Rudloff 2020-06-08 23:49:59 +02:00
parent 190238ab96
commit 4ef7a93dce

View file

@ -116,5 +116,5 @@ try {
die('Smarty could not compile the template file: ' . $e->getMessage());
} catch (Throwable $e) {
// Last resort if the error has not been caught by the error handler for some reason.
die('Error when starting the app: ' . $e->getMessage());
die('Error when starting the app: ' . htmlentities($e->getMessage()));
}