diff --git a/Theme/Backend/qa-dashboard.tpl.php b/Theme/Backend/qa-dashboard.tpl.php
index 008c245..5e59b19 100644
--- a/Theme/Backend/qa-dashboard.tpl.php
+++ b/Theme/Backend/qa-dashboard.tpl.php
@@ -9,15 +9,15 @@ echo $this->getData('nav')->render(); ?>
- = count($question->getAnswers()); ?>
+ = htmlspecialchars(count($question->getAnswers()), ENT_COMPAT, 'utf-8'); ?>
getBadges(); foreach($badges as $badge) : ?>
- = $badge->getName(); ?>
+ = htmlspecialchars($badge->getName(), ENT_COMPAT, 'utf-8'); ?>
diff --git a/Theme/Backend/qa-question.tpl.php b/Theme/Backend/qa-question.tpl.php
index 452e41d..034fdf5 100644
--- a/Theme/Backend/qa-question.tpl.php
+++ b/Theme/Backend/qa-question.tpl.php
@@ -8,9 +8,9 @@ echo $this->getData('nav')->render();
- = $question->getName(); ?>
+ = htmlspecialchars($question->getName(), ENT_COMPAT, 'utf-8'); ?>
- = $question->getQuestion(); ?>
+ = htmlspecialchars($question->getQuestion(), ENT_COMPAT, 'utf-8'); ?>
@@ -21,7 +21,7 @@ echo $this->getData('nav')->render();
- = $answer->getAnswer(); ?>= $answer->getCreatedAt()->format('Y-m-d'); ?>= $answer->getCreatedBy(); ?>= $answer->getStatus(); ?>= $answer->isAccepted(); ?>
+ = htmlspecialchars($answer->getAnswer(), ENT_COMPAT, 'utf-8'); ?>= htmlspecialchars($answer->getCreatedAt()->format('Y-m-d'), ENT_COMPAT, 'utf-8'); ?>= htmlspecialchars($answer->getCreatedBy(), ENT_COMPAT, 'utf-8'); ?>= htmlspecialchars($answer->getStatus(), ENT_COMPAT, 'utf-8'); ?>= htmlspecialchars($answer->isAccepted(), ENT_COMPAT, 'utf-8'); ?>
diff --git a/Theme/Backend/qa-tag-list.tpl.php b/Theme/Backend/qa-tag-list.tpl.php
index 3228ddd..c40c41b 100644
--- a/Theme/Backend/qa-tag-list.tpl.php
+++ b/Theme/Backend/qa-tag-list.tpl.php
@@ -25,22 +25,22 @@ echo $this->getData('nav')->render();
- = $this->getText('Groups'); ?>
+ = $this->getHtml('Groups') ?>
- | = $this->getText('ID', 0, 0); ?>
- | = $this->getText('Name'); ?>
+ | = $this->getHtml('ID', 0, 0); ?>
+ | = $this->getHtml('Name') ?>
|
|
|
$value) : $c++;
$url = \phpOMS\Uri\UriFactory::build('{/base}/{/lang}/backend/admin/account/settings?{?}&id=' . $value->getId()); ?>
- | = $value->getId(); ?>
- | = $value->getName(); ?>
+ | = htmlspecialchars($value->getId(), ENT_COMPAT, 'utf-8'); ?>
+ | = htmlspecialchars($value->getName(), ENT_COMPAT, 'utf-8'); ?>
- |
| = $this->getText('Empty', 0, 0); ?>
+ |
| = $this->getHtml('Empty', 0, 0); ?>
|