mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-09-22 00:00:31 -04:00
fix lurky marshaling
This commit is contained in:
parent
f74edde14c
commit
c46d285b47
@ -103,12 +103,12 @@ module Stripe
|
||||
end
|
||||
|
||||
def _dump(level)
|
||||
[Marshal.dump(@values), @api_key].join("--::--")
|
||||
[CGI.escape(Marshal.dump(@values)), @api_key].join(":")
|
||||
end
|
||||
|
||||
def self._load(args)
|
||||
hash = args.split("--::--")
|
||||
construct_from(Marshal.load(hash[0]), hash[1])
|
||||
hash = args.split(":")
|
||||
construct_from(Marshal.load(CGI.unescape(hash[0])), hash[1])
|
||||
end
|
||||
|
||||
if RUBY_VERSION < '1.9.2'
|
||||
|
Loading…
x
Reference in New Issue
Block a user