Adds a second argument to encode_base64
git-svn-id: file:///home/svn/framework3/trunk@4618 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
c6d5ac1968
commit
9333609211
|
@ -456,8 +456,8 @@ module Text
|
|||
#
|
||||
# Base64 encoder
|
||||
#
|
||||
def self.encode_base64(str)
|
||||
[str].pack("m").gsub(/\s+/, '')
|
||||
def self.encode_base64(str, delim='')
|
||||
[str].pack("m").gsub(/\s+/, delim)
|
||||
end
|
||||
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue