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 0366a590af
commit 5227425671

View File

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