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

SAML2_HTTPArtifact: Avoid PHP warnings when receiving ArtifactResponse without data.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2537 44740490-163a-0410-bde0-09ae8108e29a
parent 6ac2c2d4
No related branches found
No related tags found
No related merge requests found
......@@ -117,6 +117,11 @@ class SAML2_HTTPArtifact extends SAML2_Binding {
}
$xml = $artifactResponse->getAny();
if ($xml === NULL) {
/* Empty ArtifactResponse - possibly because of Artifact replay? */
return NULL;
}
$samlresponse = SAML2_Message::fromXML($xml);
$samlresponse->addValidator(array(get_class($this), 'validateSignature'), $artifactResponse);
......
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