Skip to content

Commit d190434

Browse files
committed
fix: 404 page may display Exception message in production environment
1 parent 4df89ed commit d190434

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Views/errors/html/error_404.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
<h1>404 - File Not Found</h1>
7474

7575
<p>
76-
<?php if (! empty($message) && $message !== '(null)') : ?>
76+
<?php if (ENVIRONMENT !== 'production') : ?>
7777
<?= nl2br(esc($message)) ?>
7878
<?php else : ?>
7979
Sorry! Cannot seem to find the page you were looking for.

0 commit comments

Comments
 (0)