We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25173fe commit e605fc7Copy full SHA for e605fc7
lib/xml_security.rb
@@ -90,7 +90,7 @@ def validate_doc(base64_cert, soft = true)
90
91
hashed_element = document.at_xpath("//*[@ID='#{uri[1..-1]}']")
92
canon_algorithm = canon_algorithm REXML::XPath.first(ref, '//ds:CanonicalizationMethod', 'ds' => DSIG)
93
- canon_hashed_element = hashed_element.canonicalize(canon_algorithm, inclusive_namespaces).gsub('&','&')
+ canon_hashed_element = hashed_element.canonicalize(canon_algorithm, inclusive_namespaces).gsub(/&(?!amp;)/,'&')
94
95
digest_algorithm = algorithm(REXML::XPath.first(ref, "//ds:DigestMethod"))
96
0 commit comments