Skip to content

Commit d423211

Browse files
committed
Fix typo and compatibility
1 parent 0342f0f commit d423211

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Saml2/Utils.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1521,7 +1521,7 @@ public static function validateBinarySign($messageType, $getData, $idpData, $ret
15211521
OneLogin_Saml2_Error::INVALID_PARAMETER
15221522
);
15231523
}
1524-
$keys = ["SAMLRequest", "SAMLResponse", "RelayState", "SigAlg", "Signature"];
1524+
$keys = array("SAMLRequest", "SAMLResponse", "RelayState", "SigAlg", "Signature");
15251525
foreach ($keys as $key) {
15261526
if (substr_count($_SERVER['QUERY_STRING'], $key) > 1) {
15271527
throw new OneLogin_Saml2_Error(
@@ -1544,7 +1544,7 @@ public static function validateBinarySign($messageType, $getData, $idpData, $ret
15441544
$signedQuery .= '&SigAlg='.OneLogin_Saml2_Utils::extractOriginalQueryParam('SigAlg');
15451545
} else {
15461546
if (isset($getData['SAMLRequest']) && isset($getData['SAMLResponse'])) {
1547-
throw new Error(
1547+
throw new OneLogin_Saml2_Error(
15481548
"Both SAMLRequest and SAMLResponse provided",
15491549
OneLogin_Saml2_Error::INVALID_PARAMETER
15501550
);

0 commit comments

Comments
 (0)