mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 12:39:25 +01:00
Fix stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) by preventing empty html value being processed
This commit is contained in:
parent
49b2313cfd
commit
1f28336702
@ -555,7 +555,7 @@ class Html
|
|||||||
$searchFor = '<pre>';
|
$searchFor = '<pre>';
|
||||||
$pos = stripos($html,$searchFor);
|
$pos = stripos($html,$searchFor);
|
||||||
}
|
}
|
||||||
if ($pos === false)
|
if ($pos === false || !$html)
|
||||||
{
|
{
|
||||||
return $html;
|
return $html;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user