Mercurial > hg > rc2
diff program/lib/Roundcube/rcube_result_thread.php @ 12:5039cc34571f
some old, mostly new 7.3->8.4 changes needed
| author | Charlie Root |
|---|---|
| date | Thu, 28 Aug 2025 10:37:42 -0400 |
| parents | 4681f974d28b |
| children | abddb304201f |
line wrap: on
line diff
--- a/program/lib/Roundcube/rcube_result_thread.php Sun Jan 26 13:09:03 2025 -0500 +++ b/program/lib/Roundcube/rcube_result_thread.php Thu Aug 28 10:37:42 2025 -0400 @@ -493,8 +493,9 @@ $result = array(); $start = 0; - while (($pos = @strpos($this->raw_data, self::SEPARATOR_ELEMENT, $start)) - || ($start < $datalen && ($pos = $datalen)) + while ($start < $datalen && + (($pos = @strpos($this->raw_data, self::SEPARATOR_ELEMENT, $start)) != false + || ($pos = $datalen)) ) { $len = $pos - $start; $elem = substr($this->raw_data, $start, $len);
