Remove whitespace from base64
git-svn-id: file:///home/svn/framework3/trunk@4238 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
bb79a9a6be
commit
7d949bf802
|
@ -414,7 +414,7 @@ module Text
|
|||
# Base64 encoder
|
||||
#
|
||||
def self.encode_base64(str)
|
||||
[str].pack("m").strip
|
||||
[str].pack("m").gsub(/\s+/, '')
|
||||
end
|
||||
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue