Add better protect
This commit is contained in:
parent
01e461546e
commit
e68076b8f1
@ -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)(\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)[^>]*>/i', $msg)) {
|
||||
} elseif (preg_match('/<(b|em|i|u)(\s*[^>]+)?>/i', $msg)) {
|
||||
return true;
|
||||
} elseif (preg_match('/<br\/>/i', $msg)) {
|
||||
return true;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user