File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -646,13 +646,13 @@ protected function _queryAssertion($assertionXpath)
646646 if (!$ assertionReferenceNode ) {
647647 // is the response signed as a whole?
648648 $ signatureQuery = '/samlp:Response/ds:Signature/ds:SignedInfo/ds:Reference ' ;
649- $ assertionReferenceNode = $ xpath ->query ($ signatureQuery )->item (0 );
650- if ($ assertionReferenceNode ) {
651- $ uri = $ assertionReferenceNode ->attributes ->getNamedItem ('URI ' )->nodeValue ;
649+ $ responseReferenceNode = $ xpath ->query ($ signatureQuery )->item (0 );
650+ if ($ responseReferenceNode ) {
651+ $ uri = $ responseReferenceNode ->attributes ->getNamedItem ('URI ' )->nodeValue ;
652652 if (empty ($ uri )) {
653- $ id = $ assertionReferenceNode ->parentNode ->parentNode ->parentNode ->attributes ->getNamedItem ('ID ' )->nodeValue ;
653+ $ id = $ responseReferenceNode ->parentNode ->parentNode ->parentNode ->attributes ->getNamedItem ('ID ' )->nodeValue ;
654654 } else {
655- $ id = substr ($ assertionReferenceNode ->attributes ->getNamedItem ('URI ' )->nodeValue , 1 );
655+ $ id = substr ($ responseReferenceNode ->attributes ->getNamedItem ('URI ' )->nodeValue , 1 );
656656 }
657657 $ nameQuery = "/samlp:Response[@ID=' $ id']/saml:Assertion " . $ assertionXpath ;
658658 } else {
You can’t perform that action at this time.
0 commit comments