From fa20708cbaec3d6b66816f92fb1498cff7dbb493 Mon Sep 17 00:00:00 2001 From: Nigel Sheldon Date: Sun, 22 Nov 2020 11:26:07 +0100 Subject: [PATCH] =?UTF-8?q?Corrige=20les=20retours=20=C3=A0=20la=20ligne?= =?UTF-8?q?=20dans=20les=20messages?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- onyx2/modules/templates/smarty/plugins/modifier.nl2br.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/onyx2/modules/templates/smarty/plugins/modifier.nl2br.php b/onyx2/modules/templates/smarty/plugins/modifier.nl2br.php index d9ae192..d5c2bd9 100644 --- a/onyx2/modules/templates/smarty/plugins/modifier.nl2br.php +++ b/onyx2/modules/templates/smarty/plugins/modifier.nl2br.php @@ -27,7 +27,7 @@ */ function smarty_modifier_nl2br($string) { - return nl2br($string); + return str_replace(array('\r\n', '\r', '\n'), "
", $string); } /* vim: set expandtab: */ -- 2.45.2