Commit 754bce9

mo <mo@mokhan.ca>
2018-09-17 20:46:55
check one level up instead of entire doc.
1 parent 56d8f0f
Changed files (1)
lib
lib/saml/kit/assertion.rb
@@ -73,7 +73,7 @@ module Saml
       end
 
       def expected_type?
-        at_xpath("//saml:Assertion|//saml:EncryptedAssertion").present?
+        at_xpath("../saml:Assertion|../saml:EncryptedAssertion").present?
       end
 
       def attribute_statement