From 01e461546e4b7e6310fb6fd427a171a8b7afbd53 Mon Sep 17 00:00:00 2001 From: atm-lena Date: Wed, 8 Mar 2023 14:28:43 +0100 Subject: [PATCH] FIX dol_textishtml() function --- htdocs/core/lib/functions.lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index aa7294eac75..0924e95e8ed 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -7483,7 +7483,7 @@ function dol_textishtml($msg, $option = 0) return true; } elseif (preg_match('/<\/textarea/i', $msg)) { return true; - } elseif (preg_match('/<(b|em|i|u)>/i', $msg)) { + } elseif (preg_match('/<(b|em|i|u)[^>]*>/i', $msg)) { return true; } elseif (preg_match('/
/i', $msg)) { + } elseif (preg_match('/<(b|em|i|u)[^>]*>/i', $msg)) { return true; } elseif (preg_match('//i', $msg)) { return true;