You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Data is beeing overwritten when reading the response in ImapProtocol. This happens, when the imap server sends back two responses for one request command. Here is an example:
First the content after * 2005 FETCH (UID 182835 RFC822.TEXT {645163} is beeing correctly parsed.
But the line * 2005 FETCH (UID 182835 FLAGS (\Seen)) is beeing parsed after the body and $data is beeing overwritten in: Connection\Protocols\ImapProtocol::fetch() Line 616
$data = "";
// if we only want one item we return that one directlyif (count($items) == 1) {
if ($tokens[2][0] == $items[0]) {
$data = $tokens[2][1];
} elseif ($uid && $tokens[2][2] == $items[0]) {
$data = $tokens[2][3];
} else {
...
Should be changed in
if (!isset($data)) {
$data = "";
}
// if we only want one item we return that one directlyif (count($items) == 1) {
if ($tokens[2][0] == $items[0]) {
$data = $tokens[2][1];
} elseif ($uid && $tokens[2][2] == $items[0]) {
$data = $tokens[2][3];
} else {
...
The text was updated successfully, but these errors were encountered:
Describe the bug
Data is beeing overwritten when reading the response in ImapProtocol. This happens, when the imap server sends back two responses for one request command. Here is an example:
First the content after
* 2005 FETCH (UID 182835 RFC822.TEXT {645163}
is beeing correctly parsed.But the line
* 2005 FETCH (UID 182835 FLAGS (\Seen))
is beeing parsed after the body and$data
is beeing overwritten in:Connection\Protocols\ImapProtocol::fetch()
Line 616Should be changed in
The text was updated successfully, but these errors were encountered: