lib/active_merchant/billing/gateways/hdfc.rb in activemerchant-1.100.0 vs lib/active_merchant/billing/gateways/hdfc.rb in activemerchant-1.101.0

- old
+ new

@@ -194,12 +194,10 @@ [tranid, member] end def escape(string, max_length=250) return '' unless string - if max_length - string = string[0...max_length] - end + string = string[0...max_length] if max_length string.gsub(/[^A-Za-z0-9 \-_@\.\n]/, '') end end end end