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 3a6ad31 commit ef7d890Copy full SHA for ef7d890
lib/onelogin/ruby-saml/saml_message.rb
@@ -21,10 +21,12 @@ class SamlMessage
21
22
BASE64_FORMAT = %r(\A[A-Za-z0-9+/]{4}*[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=?\Z)
23
24
+ @@mutex = Mutex.new
25
+
26
# @return [Nokogiri::XML::Schema] Gets the schema object of the SAML 2.0 Protocol schema
27
#
28
def self.schema
- Mutex.new.synchronize do
29
+ @@mutex.synchronize do
30
Dir.chdir(File.expand_path("../../../schemas", __FILE__)) do
31
::Nokogiri::XML::Schema(File.read("saml-schema-protocol-2.0.xsd"))
32
end
0 commit comments