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