Skip to content

Commit 2304fba

Browse files
committed
Add commented method
1 parent 2b2ce90 commit 2304fba

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

lib/ruby_saml/xml.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,16 @@ module XML
4949
NOKOGIRI_OPTIONS = Nokogiri::XML::ParseOptions::STRICT |
5050
Nokogiri::XML::ParseOptions::NONET
5151

52+
# TODO: safe_load_message (rename safe_load_nokogiri --> safe_load_xml)
53+
# def safe_load_message(message, check_malformed_doc: true)
54+
# message = Decoder.decode(message)
55+
# begin
56+
# safe_load_nokogiri(message, check_malformed_doc: check_malformed_doc)
57+
# rescue RubySaml::Errors::XMLLoadError
58+
# Nokogiri::XML::Document.new
59+
# end
60+
# end
61+
5262
# Safely load the SAML Message XML.
5363
# @param document [String | Nokogiri::XML::Document] The message to be loaded
5464
# @param check_malformed_doc [Boolean] check_malformed_doc Enable or Disable the check for malformed XML

0 commit comments

Comments
 (0)