lib/active_merchant/billing/gateways/payment_express.rb in activemerchant-1.76.0 vs lib/active_merchant/billing/gateways/payment_express.rb in activemerchant-1.77.0
- old
+ new
@@ -126,10 +126,11 @@
true
end
def scrub(transcript)
transcript.
- gsub(%r((Authorization: Basic )\w+), '\1[FILTERED]').
+ gsub(%r((<PostPassword>).+(</PostPassword>)), '\1[FILTERED]\2').
+ gsub(%r((Authorization: Basic )\w+), '\1[FILTERED]\2').
gsub(%r((<CardNumber>)\d+(</CardNumber>)), '\1[FILTERED]\2').
gsub(%r((<Cvc2>)\d+(</Cvc2>)), '\1[FILTERED]\2')
end
private