Escape error message
Because of the "Maybe you have characters before an opening <?php tag?" error
This commit is contained in:
parent
190238ab96
commit
4ef7a93dce
1 changed files with 1 additions and 1 deletions
|
@ -116,5 +116,5 @@ try {
|
||||||
die('Smarty could not compile the template file: ' . $e->getMessage());
|
die('Smarty could not compile the template file: ' . $e->getMessage());
|
||||||
} catch (Throwable $e) {
|
} catch (Throwable $e) {
|
||||||
// Last resort if the error has not been caught by the error handler for some reason.
|
// 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()));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue