From 6ca57d07470b6a8f811fd2e584e68d29364fc35c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?C=C3=B4me=20Chilliet?= <come.chilliet@fusiondirectory.org>
Date: Wed, 17 Jun 2020 12:04:33 +0200
Subject: [PATCH] :ambulance: fix(core) Escape Example translation in error
 messages

issue #6071
---
 include/errors/class_SimplePluginError.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/errors/class_SimplePluginError.inc b/include/errors/class_SimplePluginError.inc
index ca6349d11..a67eebb1f 100644
--- a/include/errors/class_SimplePluginError.inc
+++ b/include/errors/class_SimplePluginError.inc
@@ -94,7 +94,7 @@ class SimplePluginError extends FusionDirectoryError
 
     /* Stylize example */
     if (!empty($example)) {
-      $html .= '<br/><br/><i>'.sprintf(_('Example: %s'), htmlescape($example)).'</i> ';
+      $html .= '<br/><br/><i>'.htmlescape(sprintf(_('Example: %s'), $example)).'</i> ';
     }
 
     $trace = $this->getTrace();
-- 
GitLab