From: Alexandre Alapetite Date: Sat, 17 Nov 2018 13:01:07 +0000 (+0100) Subject: Escaping moved to template X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4d092872a5c286b6b91fbfc1f74d611e847269c0;p=friendica.git Escaping moved to template https://github.com/friendica/friendica/pull/6147#pullrequestreview-176051481 --- diff --git a/src/App.php b/src/App.php index 013c12b908..4451013093 100644 --- a/src/App.php +++ b/src/App.php @@ -116,7 +116,7 @@ class App public function registerStylesheet($path) { $url = str_replace($this->getBasePath() . DIRECTORY_SEPARATOR, '', $path); - $url = htmlspecialchars($url, ENT_COMPAT, 'UTF-8'); + $this->stylesheets[] = trim($url, '/'); } diff --git a/view/templates/head.tpl b/view/templates/head.tpl index e76b97b8b9..f1983d7dc6 100644 --- a/view/templates/head.tpl +++ b/view/templates/head.tpl @@ -9,7 +9,7 @@ {{foreach $stylesheets as $stylesheetUrl}} - + {{/foreach}} diff --git a/view/theme/frio/templates/head.tpl b/view/theme/frio/templates/head.tpl index d8f8b1d82d..c8d30c0b50 100644 --- a/view/theme/frio/templates/head.tpl +++ b/view/theme/frio/templates/head.tpl @@ -26,7 +26,7 @@ {{foreach $stylesheets as $stylesheetUrl}} - + {{/foreach}} {{* own css files *}}