Skip to content

Commit

Permalink
Escape error template message output
Browse files Browse the repository at this point in the history
  • Loading branch information
bcrowe committed Jul 28, 2014
1 parent 84e4b8d commit e0c5c4e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/test_app/TestApp/Template/Error/error400.ctp
Expand Up @@ -14,7 +14,7 @@
*/
use Cake\Core\Configure;
?>
<h2><?= $message ?></h2>
<h2><?= h($message) ?></h2>
<p class="error">
<strong><?= __d('cake', 'Error'); ?>: </strong>
<?= sprintf(
Expand Down
2 changes: 1 addition & 1 deletion tests/test_app/TestApp/Template/Error/error500.ctp
Expand Up @@ -14,7 +14,7 @@
*/
use Cake\Core\Configure;
?>
<h2><?= $message; ?></h2>
<h2><?= h($message) ?></h2>
<p class="error">
<strong><?= __d('cake', 'Error'); ?>: </strong>
<?= __d('cake', 'An Internal Error Has Occurred.'); ?>
Expand Down

0 comments on commit e0c5c4e

Please sign in to comment.