Skip to content

Commit b58e5db

Browse files
committed
Ignore additional MAPI challenge fields instead of raising an error
As long as the version number remains 9, unknown challenge fields can safely be ignored. The next release of MonetDB will send one such an additional field.
1 parent 8c538a4 commit b58e5db

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)