From c4927f588f657489a3ddcb1461b27d5b0b1b50ae Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Mon, 24 Jul 2017 20:42:12 +0200 Subject: [PATCH] Add escaped language output --- Views/View.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Views/View.php b/Views/View.php index d44a33ae1..b8269473b 100644 --- a/Views/View.php +++ b/Views/View.php @@ -196,6 +196,11 @@ class View extends ViewAbstract return $this->app->l11nManager->getText($this->l11n->getLanguage(), $module, $theme, $translation); } + protected function getHtml(string $translation, string $module = null, string $theme = null) : string + { + return htmlspecialchars($this->getText($translation, $module, $theme)); + } + /** * @return RequestAbstract *