Skip to content

Commit

Permalink
Merge pull request #578 from onelogin/fix_xpath
Browse files Browse the repository at this point in the history
See #577. Fix XPath typo incompatible with Rexml 3.2.5
  • Loading branch information
pitbulk committed Apr 5, 2021
2 parents 61d09d0 + b40edbf commit 3ed4da3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/onelogin/ruby-saml/response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,7 @@ def validate_signature
# otherwise, review if the decrypted assertion contains a signature
sig_elements = REXML::XPath.match(
document,
"/p:Response[@ID=$id]/ds:Signature]",
"/p:Response[@ID=$id]/ds:Signature",
{ "p" => PROTOCOL, "ds" => DSIG },
{ 'id' => document.signed_element_id }
)
Expand Down

0 comments on commit 3ed4da3

Please # to comment.