diff --git a/lib/SAML2/Binding.php b/lib/SAML2/Binding.php index b4016b3cbf46b6e676f5e138eeb2af90eddfe55a..a6b672b3cdfb37f9327d63e37c190a334c44999d 100644 --- a/lib/SAML2/Binding.php +++ b/lib/SAML2/Binding.php @@ -53,9 +53,9 @@ abstract class SAML2_Binding { public static function getCurrentBinding() { switch ($_SERVER['REQUEST_METHOD']) { case 'GET': - if (array_key_exists('SAMLRequest', $_REQUEST) || array_key_exists('SAMLResponse', $_REQUEST)) { + if (array_key_exists('SAMLRequest', $_GET) || array_key_exists('SAMLResponse', $_GET)) { return new SAML2_HTTPRedirect(); - } elseif (array_key_exists('SAMLart', $_REQUEST) ){ + } elseif (array_key_exists('SAMLart', $_GET) ){ return new SAML2_HTTPArtifact(); } break; @@ -68,9 +68,9 @@ abstract class SAML2_Binding { } else { $contentType = NULL; } - if (array_key_exists('SAMLRequest', $_REQUEST) || array_key_exists('SAMLResponse', $_REQUEST)) { + if (array_key_exists('SAMLRequest', $_POST) || array_key_exists('SAMLResponse', $_POST)) { return new SAML2_HTTPPost(); - } elseif (array_key_exists('SAMLart', $_REQUEST) ){ + } elseif (array_key_exists('SAMLart', $_POST) ){ return new SAML2_HTTPArtifact(); } elseif ($contentType === 'text/xml') { return new SAML2_SOAP();