lib/active_merchant/billing/gateways/hdfc.rb in activemerchant-1.103.0 vs lib/active_merchant/billing/gateways/hdfc.rb in activemerchant-1.104.0
- old
+ new
@@ -194,9 +194,10 @@
[tranid, member]
end
def escape(string, max_length=250)
return '' unless string
+
string = string[0...max_length] if max_length
string.gsub(/[^A-Za-z0-9 \-_@\.\n]/, '')
end
end
end