Clean up exception titles

This commit is contained in:
Lonnie Ezell 2017-08-14 22:26:54 -05:00
parent ce0a7edfda
commit 4368af5813
No known key found for this signature in database
GPG Key ID: 8EB408F8D82F5002

View File

@ -21,7 +21,7 @@
<div class="container">
<h1><?= htmlspecialchars($title, ENT_SUBSTITUTE, 'UTF-8'), ($exception->getCode() ? ' #'.$exception->getCode() : '') ?></h1>
<p>
<?= htmlspecialchars($exception->getMessage(), ENT_SUBSTITUTE) ?>
<?= $exception->getMessage() ?>
<a href="https://www.google.com/search?q=<?= urlencode($title.' '.preg_replace('#\'.*\'|".*"#Us', '', $exception->getMessage())) ?>"
rel="noreferrer" target="_blank">search &rarr;</a>
</p>