Skip to content

Commit

Permalink
Base64 encoded text in insertion
Browse files Browse the repository at this point in the history
  • Loading branch information
Ezveus committed Jan 16, 2013
1 parent db4aa76 commit de56822
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/minep-request
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ while $goon do
quit
end
if str.nil?
quit
$goon = false
else
tab = str.strip.split
puts "/!\\ Received a message from server :\n\t#{str.strip}"
Expand Down
1 change: 1 addition & 0 deletions lib/minep-request.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
require 'json'
require 'securerandom'
require 'base64'

require "minep-request/version"
require "minep-request/minep"
Expand Down
3 changes: 3 additions & 0 deletions lib/minep-request/minep.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ def self.makeMsg request, args, buflist = nil
args[k] = read
end
end
if request == "INSERT"
args[:text] = Base64.encode64 args[:text]
end
if buflist and args[:buffer]
bufferName = args[:buffer]
args[:buffer] = buflist[bufferName]
Expand Down
2 changes: 1 addition & 1 deletion lib/minep-request/version.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module Minep
module Request
VERSION = "0.0.7"
VERSION = "0.0.8"
DATE = Time.now.to_s.split[0]
end
end

0 comments on commit de56822

Please sign in to comment.