diff options
author | Olav Morken <olav.morken@uninett.no> | 2010-09-09 10:40:55 +0000 |
---|---|---|
committer | Olav Morken <olav.morken@uninett.no> | 2010-09-09 10:40:55 +0000 |
commit | 9415ca38da512ae7a32150adf0de748442cf3269 (patch) | |
tree | 8b6a267465ed5bd5f776c757498f7ac6457ffe68 /lib | |
parent | 6ac2c2d4ffb30ba975302dc93b0da70099ac6830 (diff) | |
download | simplesamlphp-9415ca38da512ae7a32150adf0de748442cf3269.zip simplesamlphp-9415ca38da512ae7a32150adf0de748442cf3269.tar.gz simplesamlphp-9415ca38da512ae7a32150adf0de748442cf3269.tar.bz2 |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/SAML2/HTTPArtifact.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/SAML2/HTTPArtifact.php b/lib/SAML2/HTTPArtifact.php index 21646ff..f049272 100644 --- a/lib/SAML2/HTTPArtifact.php +++ b/lib/SAML2/HTTPArtifact.php @@ -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); |