From 9423b3932d97f64ba4141712d2720ec8a533c47e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?C=C3=B4me=20Chilliet?= <come@opensides.be>
Date: Wed, 10 Oct 2018 09:41:34 +0200
Subject: [PATCH] Revert "Merge branch
 '5907-password-recover-does-not-escape-fields-in-error-messages' into
 '1.4-dev'"

This reverts merge request !420
---
 ihtml/themes/breezy/msg_dialog.tpl | 4 ++--
 include/class_msg_dialog.inc       | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/ihtml/themes/breezy/msg_dialog.tpl b/ihtml/themes/breezy/msg_dialog.tpl
index 1189491b2..a10127140 100644
--- a/ihtml/themes/breezy/msg_dialog.tpl
+++ b/ihtml/themes/breezy/msg_dialog.tpl
@@ -41,12 +41,12 @@
       {elseif $i_Type == $smarty.const.INFO_DIALOG || $i_Type == $smarty.const.CONFIRM_DIALOG}
         <img src="geticon.php?context=status&amp;icon=dialog-information&amp;size=32" class="center" alt="{t}Information{/t}"/>
       {/if}
-        {$s_Title|escape}
+        {$s_Title}
       </h2>
     </div>
 
     <div style="z-index:250;width:100%;">
-      {$s_Message|escape}
+      {$s_Message}
     </div>
     <div class="plugbottom">
       {if $s_Trace != "" && $i_TraceCnt != 0}
diff --git a/include/class_msg_dialog.inc b/include/class_msg_dialog.inc
index f14e6acaf..911606ffb 100644
--- a/include/class_msg_dialog.inc
+++ b/include/class_msg_dialog.inc
@@ -172,8 +172,8 @@ class msg_dialog
               <img src="geticon.php?context=status&amp;icon=dialog-error&amp;size=32" alt="'._('Error').'"/>
             </td>
             <td style="width:100%">
-              <b>'.htmlentities($this->s_Title, ENT_COMPAT, 'UTF-8').'</b><br/>
-              '.htmlentities($this->s_Message, ENT_COMPAT, 'UTF-8').'<br><br/>
+              <b>'.$this->s_Title.'</b><br/>
+              '.$this->s_Message.'<br><br/>
               '._('Please fix the above error and reload the page.').'
             </td>
           </tr>
-- 
GitLab