We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8c538a4 + b58e5db commit b463196Copy full SHA for b463196
src/ServerChallenge.php
@@ -77,9 +77,9 @@ function __construct(string $challengeLine)
77
{
78
$parts = explode(':', $challengeLine);
79
$count = count($parts) - 1; // Last is always empty
80
- if ($count != 6) {
+ if ($count < 6) {
81
throw new MonetException("Received invalid 'server challenge' string from the server. It"
82
- ." contains {$count} fields, instead of 6.");
+ ." contains {$count} fields, should be at least 6.");
83
}
84
85
$this->salt = trim($parts[0]);
0 commit comments