Skip to content

Commit

Permalink
Merge pull request #3 from joerivanruth/mapihandshake
Browse files Browse the repository at this point in the history
Ignore additional MAPI challenge fields instead of raising an error
  • Loading branch information
bolner authored Oct 15, 2021
2 parents 8c538a4 + b58e5db commit b463196
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ServerChallenge.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ function __construct(string $challengeLine)
{
$parts = explode(':', $challengeLine);
$count = count($parts) - 1; // Last is always empty
if ($count != 6) {
if ($count < 6) {
throw new MonetException("Received invalid 'server challenge' string from the server. It"
." contains {$count} fields, instead of 6.");
." contains {$count} fields, should be at least 6.");
}

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

0 comments on commit b463196

Please sign in to comment.