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

SAML2:AuthnResponse - Changed getInResponseTo() to use a different xPath approach.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@123 44740490-163a-0410-bde0-09ae8108e29a
parent fce53b55
No related branches found
No related tags found
No related merge requests found
......@@ -358,12 +358,13 @@ class SimpleSAML_XML_SAML20_AuthnResponse extends SimpleSAML_XML_AuthnResponse {
$xPath = new DOMXpath($dom);
$xPath->registerNamespace('samlp', self::SAML2_PROTOCOL_NS);
$result = $xPath->query('/samlp:Response/@InResponseTo');
if($result->length === 0) {
$query = 'string(/samlp:Response/@InResponseTo)';
$result = $xPath->evaluate($query);
if($result === '') {
return NULL;
}
return $result->item(0)->value;
return $result;
}
......
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