onelogin/ruby-saml — pull request #63 by squarooticus (2013-01-31 16:02:48+00:00)
Title: Address issue #60

The validate_doc operation in xml_security.rb was modifying the original document, making the second run fail, so the code now copies the document before modifying it. I took this approach instead of memoizing the result in case there is some legitimate case in which the second invocation of validate should fail (e.g., after making an options change, or altering the response manually, etc.).