Skip to content

Commit

Permalink
Escape exception message content.
Browse files Browse the repository at this point in the history
It is possible for exception messages to have unsafe content in them.
  • Loading branch information
markstory committed Mar 20, 2016
1 parent 09bb01d commit bbc8cee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Template/Layout/dev_error.ctp
Expand Up @@ -20,7 +20,7 @@ use Cake\Error\Debugger;
<?= $this->Html->charset() ?>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
Error: <?= $this->fetch('title') ?>
Error: <?= h($this->fetch('title')) ?>
</title>
<?= $this->Html->meta('icon') ?>
<style>
Expand Down Expand Up @@ -202,7 +202,7 @@ use Cake\Error\Debugger;
<body>
<header>
<h1 class="header-title">
<?= $this->fetch('title') ?>
<?= h($this->fetch('title')) ?>
<span class="header-type"><?= get_class($error) ?></span>
</h1>
<div class="header-help">
Expand Down

0 comments on commit bbc8cee

Please sign in to comment.