From 6c321df5d2f1c6ef7aa6b52bb21b4c363fac7086 Mon Sep 17 00:00:00 2001 From: Gordon Friebe Date: Wed, 19 Jan 2022 14:15:41 +0100 Subject: [PATCH] makes ruby 3 compatible --- lib/Paymentwall/Widget.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Paymentwall/Widget.rb b/lib/Paymentwall/Widget.rb index a3c7331..a216989 100755 --- a/lib/Paymentwall/Widget.rb +++ b/lib/Paymentwall/Widget.rb @@ -193,7 +193,7 @@ def http_build_query(params) end def url_encode(value) - URI.escape(value.to_s, Regexp.new("[^#{URI::PATTERN::UNRESERVED}]")) + ERB::Util.url_encode(value.to_s) end end end