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 2b2ce90 commit 2304fbaCopy full SHA for 2304fba
1 file changed
lib/ruby_saml/xml.rb
@@ -49,6 +49,16 @@ module XML
49
NOKOGIRI_OPTIONS = Nokogiri::XML::ParseOptions::STRICT |
50
Nokogiri::XML::ParseOptions::NONET
51
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
61
+
62
# Safely load the SAML Message XML.
63
# @param document [String | Nokogiri::XML::Document] The message to be loaded
64
# @param check_malformed_doc [Boolean] check_malformed_doc Enable or Disable the check for malformed XML
0 commit comments