Fix stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) by preventing empty html value being processed

This commit is contained in:
Hadi Nategh 2021-11-04 14:12:21 +01:00
parent 49b2313cfd
commit 1f28336702

View File

@ -555,7 +555,7 @@ class Html
$searchFor = '<pre>';
$pos = stripos($html,$searchFor);
}
if ($pos === false)
if ($pos === false || !$html)
{
return $html;
}