From 73f668f4e886f9aa65678f3b79a883746d4e38b1 Mon Sep 17 00:00:00 2001 From: Peter Prochaska Date: Tue, 10 Oct 2017 13:40:43 +0200 Subject: [PATCH] [stable10] fixed double escaping --- lib/private/legacy/template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/legacy/template.php b/lib/private/legacy/template.php index 3d5d4574ce65..3e948cc88ec7 100644 --- a/lib/private/legacy/template.php +++ b/lib/private/legacy/template.php @@ -328,7 +328,7 @@ public static function printErrorPage( $error_msg, $hint = '', $httpStatusCode = try { $content = new \OC_Template( '', 'error', 'error', false ); - $errors = [['error' => \OCP\Util::sanitizeHTML($error_msg), 'hint' => \OCP\Util::sanitizeHTML($hint)]]; + $errors = [['error' => $error_msg, 'hint' => $hint]]; $content->assign( 'errors', $errors ); if ($httpStatusCode !== null) { http_response_code((int)$httpStatusCode);