From 05fa5152027fd4175b7d6e1e593c7aa7f48d8c1f 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/department-create.tpl.php | 12 ++++++------ Theme/Backend/department-list.tpl.php | 22 +++++++++++----------- Theme/Backend/department-profile.tpl.php | 22 +++++++++++----------- Theme/Backend/position-create.tpl.php | 16 ++++++++-------- Theme/Backend/position-list.tpl.php | 18 +++++++++--------- Theme/Backend/position-profile.tpl.php | 22 +++++++++++----------- Theme/Backend/unit-create.tpl.php | 16 ++++++++-------- Theme/Backend/unit-list.tpl.php | 16 ++++++++-------- Theme/Backend/unit-profile.tpl.php | 22 +++++++++++----------- 9 files changed, 83 insertions(+), 83 deletions(-) diff --git a/Theme/Backend/department-create.tpl.php b/Theme/Backend/department-create.tpl.php index d83c9e4..3b0986e 100644 --- a/Theme/Backend/department-create.tpl.php +++ b/Theme/Backend/department-create.tpl.php @@ -21,20 +21,20 @@ echo $this->getData('nav')->render(); ?>
-

getText('Department'); ?>

+

getHtml('Department') ?>

-
+
-
+
-
+
-
+
-
+
diff --git a/Theme/Backend/department-list.tpl.php b/Theme/Backend/department-list.tpl.php index bc6e292..a438cca 100644 --- a/Theme/Backend/department-list.tpl.php +++ b/Theme/Backend/department-list.tpl.php @@ -29,27 +29,27 @@ echo $this->getData('nav')->render(); ?>
- + - - getData('list:elements') as $key => $value) : $c++; $url = \phpOMS\Uri\UriFactory::build('{/base}/{/lang}/backend/organization/department/profile?{?}&id=' . $value->getId()); ?> - -
getText('Departments'); ?>getHtml('Departments') ?>
getText('ID', 0, 0); ?> - getText('Name'); ?> - getText('Parent'); ?> - getText('Unit'); ?> + getHtml('ID', 0, 0); ?> + getHtml('Name') ?> + getHtml('Parent') ?> + getHtml('Unit') ?>
render(); ?> +
render(), ENT_COMPAT, 'utf-8'); ?>
getId(); ?> - getName(); ?> - getParent(); ?> - getUnit(); ?> + getId(), ENT_COMPAT, 'utf-8'); ?> + getName(), ENT_COMPAT, 'utf-8'); ?> + getParent(), ENT_COMPAT, 'utf-8'); ?> + getUnit(), ENT_COMPAT, 'utf-8'); ?>
getText('Empty', 0, 0); ?> + getHtml('Empty', 0, 0); ?>
diff --git a/Theme/Backend/department-profile.tpl.php b/Theme/Backend/department-profile.tpl.php index 708d258..5ad9005 100644 --- a/Theme/Backend/department-profile.tpl.php +++ b/Theme/Backend/department-profile.tpl.php @@ -23,22 +23,22 @@ echo $this->getData('nav')->render(); ?>
-

getText('Department'); ?>

+

getHtml('Department') ?>

-
-
-
-
-
+
+
+
+
+
-
-
-
+
+
+
diff --git a/Theme/Backend/position-create.tpl.php b/Theme/Backend/position-create.tpl.php index 36a3428..48778c2 100644 --- a/Theme/Backend/position-create.tpl.php +++ b/Theme/Backend/position-create.tpl.php @@ -21,22 +21,22 @@ echo $this->getData('nav')->render(); ?>
-

getText('Position'); ?>

+

getHtml('Position') ?>

-
+
-
+
-
+
-
+
-
+
diff --git a/Theme/Backend/position-list.tpl.php b/Theme/Backend/position-list.tpl.php index bce73de..bfc5f5d 100644 --- a/Theme/Backend/position-list.tpl.php +++ b/Theme/Backend/position-list.tpl.php @@ -31,24 +31,24 @@ echo $this->getData('nav')->render(); ?>
- + - - $value) : $count++; $url = \phpOMS\Uri\UriFactory::build('{/base}/{/lang}/backend/organization/position/profile?{?}&id=' . $value->getId()); ?> -
getText('Positions'); ?>getHtml('Positions') ?>
getText('ID', 0, 0); ?> - getText('Name'); ?> - getText('Parent'); ?> + getHtml('ID', 0, 0); ?> + getHtml('Name') ?> + getHtml('Parent') ?>
render(); ?> +
render(), ENT_COMPAT, 'utf-8'); ?>
getId(); ?> - getName(); ?> - getParent(); ?> + getId(), ENT_COMPAT, 'utf-8'); ?> + getName(), ENT_COMPAT, 'utf-8'); ?> + getParent(), ENT_COMPAT, 'utf-8'); ?> -
getText('Empty', 0, 0); ?> +
getHtml('Empty', 0, 0); ?>
diff --git a/Theme/Backend/position-profile.tpl.php b/Theme/Backend/position-profile.tpl.php index 24ef56c..9b24e1e 100644 --- a/Theme/Backend/position-profile.tpl.php +++ b/Theme/Backend/position-profile.tpl.php @@ -23,22 +23,22 @@ echo $this->getData('nav')->render(); ?>
-

getText('Position'); ?>

+

getHtml('Position') ?>

-
-
-
-
-
+
+
+
+
+
-
-
-
+
+
+
diff --git a/Theme/Backend/unit-create.tpl.php b/Theme/Backend/unit-create.tpl.php index 356ab37..1d85ebd 100644 --- a/Theme/Backend/unit-create.tpl.php +++ b/Theme/Backend/unit-create.tpl.php @@ -21,22 +21,22 @@ echo $this->getData('nav')->render(); ?>
-

getText('Unit'); ?>

+

getHtml('Unit') ?>

-
+
-
+
-
+
-
+
-
+
diff --git a/Theme/Backend/unit-list.tpl.php b/Theme/Backend/unit-list.tpl.php index bbf4d4a..49f03ff 100644 --- a/Theme/Backend/unit-list.tpl.php +++ b/Theme/Backend/unit-list.tpl.php @@ -29,21 +29,21 @@ echo $this->getData('nav')->render(); ?>
- + - - getData('list:elements') as $key => $value) : $url = \phpOMS\Uri\UriFactory::build('{/base}/{/lang}/backend/organization/unit/profile?{?}&id=' . $value->getId()); ?> -
getText('Units'); ?>getHtml('Units') ?>
getText('ID', 0, 0); ?> - getText('Name'); ?> - getText('Parent'); ?> + getHtml('ID', 0, 0); ?> + getHtml('Name') ?> + getHtml('Parent') ?>
render(); ?> +
render(), ENT_COMPAT, 'utf-8'); ?>
getId(); ?> - getName(); ?> - getParent(); ?> + getId() ?> + getName(), ENT_COMPAT, 'utf-8'); ?> + getParent(), ENT_COMPAT, 'utf-8'); ?>
diff --git a/Theme/Backend/unit-profile.tpl.php b/Theme/Backend/unit-profile.tpl.php index f2d2011..05b5a4b 100644 --- a/Theme/Backend/unit-profile.tpl.php +++ b/Theme/Backend/unit-profile.tpl.php @@ -23,22 +23,22 @@ echo $this->getData('nav')->render(); ?>
-

getText('Unit'); ?>

+

getHtml('Unit') ?>

-
-
-
-
-
+
+
+
+
+
-
-
-
+
+
+