Mercurial > hg > rc2
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 11:aff04b06b685 | 12:5039cc34571f |
|---|---|
| 491 { | 491 { |
| 492 $datalen = strlen($this->raw_data); | 492 $datalen = strlen($this->raw_data); |
| 493 $result = array(); | 493 $result = array(); |
| 494 $start = 0; | 494 $start = 0; |
| 495 | 495 |
| 496 while (($pos = @strpos($this->raw_data, self::SEPARATOR_ELEMENT, $start)) | 496 while ($start < $datalen && |
| 497 || ($start < $datalen && ($pos = $datalen)) | 497 (($pos = @strpos($this->raw_data, self::SEPARATOR_ELEMENT, $start)) != false |
| 498 || ($pos = $datalen)) | |
| 498 ) { | 499 ) { |
| 499 $len = $pos - $start; | 500 $len = $pos - $start; |
| 500 $elem = substr($this->raw_data, $start, $len); | 501 $elem = substr($this->raw_data, $start, $len); |
| 501 $items = explode(self::SEPARATOR_ITEM, $elem); | 502 $items = explode(self::SEPARATOR_ITEM, $elem); |
| 502 $result[array_shift($items)] = $this->build_thread($items); | 503 $result[array_shift($items)] = $this->build_thread($items); |
