From f702e689c13f0d7b3d23b773ab95cea13e3f3c18 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Thu, 6 Sep 2012 03:48:10 +0200 Subject: removed xss vulnerabilities in template code --- templates/part.items.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'templates/part.items.php') diff --git a/templates/part.items.php b/templates/part.items.php index 185fc099b..6d6369ab7 100644 --- a/templates/part.items.php +++ b/templates/part.items.php @@ -49,10 +49,10 @@ foreach($items as $item) { echo ''; echo ''; - echo '

' . $item->getTitle() . '

'; + echo '

' . htmlspecialchars($item->getTitle(), ENT_QUOTES, 'UTF-8') . '

'; if(($item->getAuthor() !== null) && (trim($item->getAuthor()) != '')){ - echo '

'. $l->t('by') . ' ' . $item->getAuthor() . '

'; + echo '

'. $l->t('by') . ' ' . htmlspecialchars($item->getAuthor(), ENT_QUOTES, 'UTF-8') . '

'; } echo '
' . $item->getBody() . '
'; -- cgit v1.2.3