From 36ae3b24700a5951ef1c93faa2a6020b069ee371 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Mon, 24 Jul 2017 20:48:22 +0200 Subject: [PATCH] Add html escaping --- .../AccountGroupSelector/base.tpl.php | 18 +++---- .../AccountGroupSelector/popup.tpl.php | 10 ++-- Theme/Backend/profile-list.tpl.php | 18 +++---- Theme/Backend/profile-single.tpl.php | 52 +++++++++---------- 4 files changed, 49 insertions(+), 49 deletions(-) diff --git a/Theme/Backend/Components/AccountGroupSelector/base.tpl.php b/Theme/Backend/Components/AccountGroupSelector/base.tpl.php index 7a0d2ac..f607d36 100644 --- a/Theme/Backend/Components/AccountGroupSelector/base.tpl.php +++ b/Theme/Backend/Components/AccountGroupSelector/base.tpl.php @@ -10,26 +10,26 @@ ] } ]' formaction=""> --datalist" id="getId(), ENT_COMPAT, 'utf-8'); ?>" name="receiver" placeholder=" Guest" data-action='[ { "key": 1, "listener": "keyup", "action": [ {"key": 1, "type": "validate.keypress", "pressed": "!enter"}, - {"key": 2, "type": "utils.timer", "id": "getId(); ?>", "delay": 500, "resets": true}, - {"key": 3, "type": "dom.datalist.clear", "id": "getId(); ?>-datalist"}, - {"key": 4, "type": "message.request", "uri": "{/base}/{/lang}/api/admin/find/account?search={#getId(); ?>}", "method": "GET", "request_type": "json"}, - {"key": 5, "type": "dom.datalist.append", "id": "getId(); ?>-datalist", "value": "id", "text": "name"} + {"key": 2, "type": "utils.timer", "id": "getId(), ENT_COMPAT, 'utf-8'); ?>", "delay": 500, "resets": true}, + {"key": 3, "type": "dom.datalist.clear", "id": "getId(), ENT_COMPAT, 'utf-8'); ?>-datalist"}, + {"key": 4, "type": "message.request", "uri": "{/base}/{/lang}/api/admin/find/account?search={#getId(), ENT_COMPAT, 'utf-8'); ?>}", "method": "GET", "request_type": "json"}, + {"key": 5, "type": "dom.datalist.append", "id": "getId(), ENT_COMPAT, 'utf-8'); ?>-datalist", "value": "id", "text": "name"} ] }, { "key": 2, "listener": "keyup", "action" : [ {"key": 1, "type": "validate.keypress", "pressed": "enter"}, - {"key": 2, "type": "message.request", "uri": "{/base}/{/lang}/api/admin/find/account?search={#getId(); ?>}", "method": "GET", "request_type": "json"}, - {"key": 3, "type": "dom.set", "id": "getId(); ?>-idlist" "data": ""} + {"key": 2, "type": "message.request", "uri": "{/base}/{/lang}/api/admin/find/account?search={#getId(), ENT_COMPAT, 'utf-8'); ?>}", "method": "GET", "request_type": "json"}, + {"key": 3, "type": "dom.set", "id": "getId(), ENT_COMPAT, 'utf-8'); ?>-idlist" "data": ""} ] } ]' required> - - + + - - - - - - - - -
getText('Name'); ?> - getName3(); ?>, getName1(); ?> + getHtml('Name') ?> + getName3(), ENT_COMPAT, 'utf-8'); ?>, getName1(), ENT_COMPAT, 'utf-8'); ?>
getText('Occupation'); ?> + getHtml('Occupation') ?> Sailor
getText('Birthday'); ?> + getHtml('Birthday') ?> 06.09.1934
getText('Ranks'); ?> + getHtml('Ranks') ?> Gosling
getText('Email'); ?> - getEmail(); ?> + getHtml('Email') ?> + getEmail(), ENT_COMPAT, 'utf-8'); ?>
Address @@ -59,7 +59,7 @@ echo $this->getData('nav')->render(); Work SMALLSYS INC
795 E DRAGRAM
TUCSON AZ 85705
USA
getText('Phone'); ?> + getHtml('Phone') ?>
Private @@ -71,14 +71,14 @@ echo $this->getData('nav')->render(); Work +01 12345-4567
getText('Registered'); ?> - getCreatedAt()->format('Y-m-d'); ?> + getHtml('Registered') ?> + getCreatedAt()->format('Y-m-d'), ENT_COMPAT, 'utf-8'); ?>
getText('LastLogin'); ?> - getLastActive()->format('Y-m-d'); ?> + getHtml('LastLogin') ?> + getLastActive()->format('Y-m-d'), ENT_COMPAT, 'utf-8'); ?>
getText('Status'); ?> - getStatus(); ?> + getHtml('Status') ?> + getStatus(), ENT_COMPAT, 'utf-8'); ?>
@@ -88,26 +88,26 @@ echo $this->getData('nav')->render();
- + - - $value) : $c++; $url = \phpOMS\Uri\UriFactory::build('{/base}/{/lang}/backend/admin/group/settings?{?}&id=' . $value->getId()); ?> -
getText('Media', 'Media'); ?>getHtml('Media', 'Media') ?>
getText('ID', 0, 0); ?> - getText('Name', 'Media'); ?> - getText('Type', 'Media'); ?> - getText('Created', 'Media'); ?> + getHtml('ID', 0, 0); ?> + getHtml('Name', 'Media') ?> + getHtml('Type', 'Media') ?> + getHtml('Created', 'Media') ?>
render(); ?> +
render(), ENT_COMPAT, 'utf-8'); ?>
getId(); ?> - getNewestHistory()->getPosition(); ?> - getNewestHistory()->getPosition(); ?> - getNewestStatus()->getStatus(); ?> + getId(), ENT_COMPAT, 'utf-8'); ?> + getNewestHistory()->getPosition(), ENT_COMPAT, 'utf-8'); ?> + getNewestHistory()->getPosition(), ENT_COMPAT, 'utf-8'); ?> + getNewestStatus()->getStatus(), ENT_COMPAT, 'utf-8'); ?> -
getText('Empty', 0, 0); ?> +
getHtml('Empty', 0, 0); ?>