File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -89,8 +89,8 @@ private function _queryAssertion($assertionXpath)
8989 $ xpath ->registerNamespace ('saml ' , 'urn:oasis:names:tc:SAML:2.0:assertion ' );
9090 $ xpath ->registerNamespace ('ds ' , 'http://www.w3.org/2000/09/xmldsig# ' );
9191
92- $ signatureQuery = '//ds:Reference[@URI] ' ;
93- $ id = substr ($ xpath ->query ($ signatureQuery )->item (0 )->getAttribute ('URI ' ), 1 );
92+ $ signatureQuery = '//saml:Assertion/ ds:Signature/ds:SignedInfo/ds: Reference ' ;
93+ $ id = substr ($ xpath ->query ($ signatureQuery )->item (0 )->attributes -> getNamedItem ('URI ' )-> nodeValue , 1 );
9494
9595 $ nameQuery = "/samlp:Response/saml:Assertion[@ID=' $ id'] " . $ assertionXpath ;
9696 return $ xpath ->query ($ nameQuery );
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ class OneLogin_Saml_XmlSec
2727 public function __construct (OneLogin_Saml_Settings $ settings , OneLogin_Saml_Response $ response )
2828 {
2929 $ this ->_settings = $ settings ;
30- $ this ->_document = $ response ->document ;
30+ $ this ->_document = clone $ response ->document ;
3131 }
3232
3333 /**
You can’t perform that action at this time.
0 commit comments