mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-06 01:28:19 +01:00
Merge pull request #24162 from atm-lena/17.0_FIX_textishtmlfunction
FIX dol_textishtml() function
This commit is contained in:
@@ -7485,7 +7485,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)(\s+[^>]+)?>/i', $msg)) {
|
||||
return true;
|
||||
} elseif (preg_match('/<br/i', $msg)) {
|
||||
return true;
|
||||
@@ -7500,7 +7500,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)(\s+[^>]+)?>/i', $msg)) {
|
||||
return true;
|
||||
} elseif (preg_match('/<br\/>/i', $msg)) {
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user