Skip to content

Commit

Permalink
Escape missing variables
Browse files Browse the repository at this point in the history
refs #8903
  • Loading branch information
majentsch committed May 7, 2015
1 parent e6740c5 commit 5477a2f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -64,7 +64,7 @@ if (count($comments) === 0) {
<?php endif ?>
<br>
<?= $this->icon('comment', $this->translate('Comment')); ?> <?= isset($comment->author)
? '[' . $comment->author . '] '
? '[' . $this->escape($comment->author) . '] '
: '';
?><?= $this->escape($comment->comment); ?>
<br>
Expand Down
Expand Up @@ -13,6 +13,6 @@

<br>
<?= $this->icon('comment', $this->translate('Comment')); ?> <?= isset($comment->author)
? '[' . $comment->author . '] '
? '[' . $this->escape($comment->author) . '] '
: '';
?><?= $this->escape($comment->comment); ?>

0 comments on commit 5477a2f

Please sign in to comment.