1
1
Fork 0

Quit when message is empty

This commit is contained in:
Michael 2020-12-19 18:17:32 +00:00
parent fc19d98392
commit 3ec1270fde

View file

@ -188,6 +188,10 @@ class HTML
$message = str_replace(["\n<", ">\n", "\r", "\n", "\xC3\x82\xC2\xA0"], ["<", ">", "<br />", " ", ""], $message);
$message = preg_replace('= [\s]*=i', " ", $message);
if (empty($message)) {
return '';
}
@$doc->loadHTML($message, LIBXML_HTML_NODEFDTD);
self::tagToBBCode($doc, 'html', [], "", "");