mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:15 +01:00
fix PHP 8.0 ValueError: stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
This commit is contained in:
parent
7ac13da96f
commit
57ac760a78
@ -564,7 +564,11 @@ class Html
|
||||
{
|
||||
// avoid infinit loop in case the endof pre can't be found, just give the
|
||||
// end position to return the rest of content as return html
|
||||
$endofpre = (stripos($html,'</pre>',$pos) === false ? strlen($html) : stripos($html,'</pre>',$pos));
|
||||
if (($endofpre = stripos($html, '</pre>', $pos)) === false)
|
||||
{
|
||||
$html2ret[] = substr($html, $pos);
|
||||
break;
|
||||
}
|
||||
$length = $endofpre-$pos+6;
|
||||
$html2ret[] = substr($html,$pos,$length);
|
||||
$searchFor = '<pre ';
|
||||
|
Loading…
Reference in New Issue
Block a user