Skip to content

Commit 1428935

Browse files
authored
Merge pull request #411 from intellum/spaces-in-base-64
Allow space in Base64 string
2 parents 6ca9a93 + 224ee83 commit 1428935

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/onelogin/ruby-saml/saml_message.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def encode(string)
129129
# @return [true, false] whether or not the string is base64 encoded
130130
#
131131
def base64_encoded?(string)
132-
!!string.gsub(/[\r\n]|\\r|\\n/, "").match(BASE64_FORMAT)
132+
!!string.gsub(/[\r\n]|\\r|\\n|\s/, "").match(BASE64_FORMAT)
133133
end
134134

135135
# Inflate method

0 commit comments

Comments
 (0)