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 57ffca4 commit 93fef13
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 @@ -222,7 +222,7 @@ public static function validateSignature(array $data, XMLSecurityKey $key)
$key = SAML2_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 93fef13

Please sign in to comment.