From 7f6fa0bf0f403b6606eade739ebb556c5dd06c68 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 10 Apr 2013 10:40:35 +0200 Subject: [PATCH] Fix: Enhance detection of html --- htdocs/core/lib/functions.lib.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index 04c92c8be0d..38a65fc54ac 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -3544,16 +3544,17 @@ function dol_textishtml($msg,$option=0) { if (preg_match('//i',$msg)) return true; elseif (preg_match('/
/i',$msg)) return true; elseif (preg_match('//i',$msg)) return true; - elseif (preg_match('//i',$msg)) return true; + elseif (preg_match('/