From 739e7bc81a1ffb20573f41834d2a1c5e1c68c9b0 Mon Sep 17 00:00:00 2001 From: Sarjuuk Date: Sat, 18 Feb 2017 01:22:39 +0100 Subject: [PATCH] Articles * escape article content again * restore home logo on maintenance page --- pages/genericPage.class.php | 2 +- template/pages/maintenance.tpl.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/genericPage.class.php b/pages/genericPage.class.php index 373f7e13..801fa10f 100644 --- a/pages/genericPage.class.php +++ b/pages/genericPage.class.php @@ -332,7 +332,7 @@ class GenericPage (new Markup($text))->parseGlobalsFromText($this->jsgBuffer); $this->article = array( - 'text' => Util::defStatic($article['article']), + 'text' => Util::jsEscape(Util::defStatic($article['article'])), 'params' => [] ); diff --git a/template/pages/maintenance.tpl.php b/template/pages/maintenance.tpl.php index 75f1ec80..f59efd51 100644 --- a/template/pages/maintenance.tpl.php +++ b/template/pages/maintenance.tpl.php @@ -7,7 +7,7 @@