Skip to content
Snippets Groups Projects
Commit 6a50d184 authored by Olav Morken's avatar Olav Morken
Browse files

SAML2/Binding: Handle charset parameter in SOAP Content-Type.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2423 44740490-163a-0410-bde0-09ae8108e29a
parent a5436965
No related branches found
No related tags found
No related merge requests found
......@@ -63,12 +63,17 @@ abstract class SAML2_Binding {
case 'POST':
if (array_key_exists('SAMLRequest', $_REQUEST) || array_key_exists('SAMLResponse', $_REQUEST)) {
return new SAML2_HTTPPost();
} elseif (array_key_exists('CONTENT_TYPE', $_SERVER) && $_SERVER['CONTENT_TYPE'] === 'text/xml'){
} elseif (array_key_exists('CONTENT_TYPE', $_SERVER) && substr($_SERVER['CONTENT_TYPE'], 0, 8) === 'text/xml'){
return new SAML2_SOAP();
}
break;
}
$s = var_export($_SERVER, TRUE);
foreach (explode("\n", $s) as $l) {
error_log($l);
}
throw new Exception('Unable to find the current binding.');
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment