Skip to content

Commit 5d69753

Browse files
committed
Be strict when checking return values.
1 parent 041b752 commit 5d69753

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/SAML2/HTTPRedirect.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ public static function validateSignature(array $data, XMLSecurityKey $key)
226226
$key = Utils::castKey($key, $sigAlg);
227227
}
228228

229-
if (!$key->verifySignature($query, $signature)) {
229+
if ($key->verifySignature($query, $signature) !== 1) {
230230
throw new \Exception('Unable to validate signature on query string.');
231231
}
232232
}

0 commit comments

Comments
 (0)