From afae8b100d448fae0d20ef3a85f3a69eead4cabf Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Mon, 24 Jul 2017 20:48:22 +0200 Subject: [PATCH] Add html escaping --- Theme/Backend/surveys-create.tpl.php | 40 ++++++++++++++-------------- Theme/Backend/surveys-list.tpl.php | 14 +++++----- 2 files changed, 27 insertions(+), 27 deletions(-) diff --git a/Theme/Backend/surveys-create.tpl.php b/Theme/Backend/surveys-create.tpl.php index b2344e6..0c6d141 100644 --- a/Theme/Backend/surveys-create.tpl.php +++ b/Theme/Backend/surveys-create.tpl.php @@ -15,42 +15,42 @@ echo $this->getData('nav')->render(); ?>
-

getText('Survey') ?>

+

getHtml('Survey'); ?>

-
-
+
-
-
-
+
-
+ +
-

getText('Section') ?>

+

getHtml('Section'); ?>

-
-
-
-
+
@@ -58,19 +58,19 @@ echo $this->getData('nav')->render(); ?>
-

getText('Question') ?>

+

getHtml('Question'); ?>

-
-
-
-
+
diff --git a/Theme/Backend/surveys-list.tpl.php b/Theme/Backend/surveys-list.tpl.php index e942edc..cd5e878 100644 --- a/Theme/Backend/surveys-list.tpl.php +++ b/Theme/Backend/surveys-list.tpl.php @@ -22,21 +22,21 @@ echo $this->getData('nav')->render(); ?>
- + - - $value) : $count++; ?> -
getText('Surveys') ?>getHtml('Surveys'); ?>
getText('Status'); ?> - getText('Title'); ?> - getText('Created'); ?> - getText('Creator'); ?> + getHtml('Status') ?> + getHtml('Title') ?> + getHtml('Created') ?> + getHtml('Creator') ?>
render(); ?> + render(), ENT_COMPAT, 'utf-8'); ?>
getText('Empty', 0, 0); ?> +
getHtml('Empty', 0, 0); ?>