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 cf3ba98 commit 779b788Copy full SHA for 779b788
lib/onelogin/ruby-saml/saml_message.rb
@@ -136,7 +136,7 @@ def encode(string)
136
# @return [true, false] whether or not the string is base64 encoded
137
#
138
def base64_encoded?(string)
139
- string.gsub(/\s|\\r|\\n/, '').match?(BASE64_FORMAT)
+ !!string.gsub(/[\r\n]|\\r|\\n|\s/, "").match(BASE64_FORMAT)
140
end
141
142
# Attempt inflating a string, if it fails, return the original string.
0 commit comments