lib/active_merchant/billing/gateways/epay.rb in activemerchant-1.50.0 vs lib/active_merchant/billing/gateways/epay.rb in activemerchant-1.51.0
- old
+ new
@@ -184,10 +184,10 @@
response = raw_ssl_request(:post, live_url + 'auth/default.aspx', authorize_post_data(params), headers)
# Authorize gives the response back by redirecting with the values in
# the URL query
if location = response['Location']
- query = CGI::parse(URI.parse(location.gsub(' ', '%20')).query)
+ query = CGI::parse(URI.parse(location.gsub(' ', '%20').gsub('<', '%3C').gsub('>', '%3E')).query)
else
return {
'accept' => '0',
'errortext' => 'ePay did not respond as expected. Please try again.',
'response_code' => response.code,