Skip to content

Commit 224ee83

Browse files
author
Kyle Heironimus
committed
Allow space in Base64 string
1 parent 6ca9a93 commit 224ee83

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)