Skip to content

Commit 5ee4990

Browse files
committed
Error token length mismatch in readResponse Webklex#400
1 parent 510c4ea commit 5ee4990

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) princip
66

77
## [UNRELEASED]
88
### Fixed
9-
- NaN
9+
- Error token length mismatch in `ImapProtocol::readResponse` #400
1010

1111
### Added
1212
- NaN

src/Connection/Protocols/ImapProtocol.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ public function readResponse(Response $response, string $tag, bool $dontParse =
297297
$original = $tokens;
298298
if ($dontParse) {
299299
// First two chars are still needed for the response code
300-
$tokens = [substr($tokens, 0, 2)];
300+
$tokens = [trim(substr($tokens, 0, 3))];
301301
}
302302

303303
$original = is_array($original)?$original : [$original];

0 commit comments

Comments
 (0)