Update functions.lib.php

This commit is contained in:
Laurent Destailleur 2023-03-26 18:15:32 +02:00 committed by GitHub
parent 0ddf48869a
commit af945c1901
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)(\s*[^>]+)?>/i', $msg)) {
} elseif (preg_match('/<(b|em|i|u)(\s+[^>]+)?>/i', $msg)) {
return true;
} elseif (preg_match('/<br/i', $msg)) {
return true;
@ -7498,7 +7498,7 @@ function dol_textishtml($msg, $option = 0)
return true;
} elseif (preg_match('/<\/textarea/i', $msg)) {
return true;
} elseif (preg_match('/<(b|em|i|u)(\s*[^>]+)?>/i', $msg)) {
} elseif (preg_match('/<(b|em|i|u)(\s+[^>]+)?>/i', $msg)) {
return true;
} elseif (preg_match('/<br\/>/i', $msg)) {
return true;