lib/active_merchant/billing/integrations/notification.rb in activemerchant-1.41.0 vs lib/active_merchant/billing/integrations/notification.rb in activemerchant-1.42.0

- old
+ new

@@ -59,11 +59,11 @@ # Take the posted data and move the relevant data into a hash def parse(post) @raw = post.to_s for line in @raw.split('&') - key, value = *line.scan( %r{^([A-Za-z0-9_.]+)\=(.*)$} ).flatten - params[key] = CGI.unescape(value) + key, value = *line.scan( %r{^([A-Za-z0-9_.-]+)\=(.*)$} ).flatten + params[key] = CGI.unescape(value.to_s) if key.present? end end end end end