Skip to content

Commit

Permalink
Be strict when checking return values.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaimeperez committed Mar 2, 2018
1 parent 041b752 commit 5d69753
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SAML2/HTTPRedirect.php
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ public static function validateSignature(array $data, XMLSecurityKey $key)
$key = Utils::castKey($key, $sigAlg);
}

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

0 comments on commit 5d69753

Please sign in to comment.