Skip to content

Commit b463196

Browse files
authored
Merge pull request #3 from joerivanruth/mapihandshake
Ignore additional MAPI challenge fields instead of raising an error
2 parents 8c538a4 + b58e5db commit b463196

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ServerChallenge.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ function __construct(string $challengeLine)
7777
{
7878
$parts = explode(':', $challengeLine);
7979
$count = count($parts) - 1; // Last is always empty
80-
if ($count != 6) {
80+
if ($count < 6) {
8181
throw new MonetException("Received invalid 'server challenge' string from the server. It"
82-
." contains {$count} fields, instead of 6.");
82+
." contains {$count} fields, should be at least 6.");
8383
}
8484

8585
$this->salt = trim($parts[0]);

0 commit comments

Comments
 (0)