From e318d88553fb2aef872fc0bcb4d709b3ddafbd7c Mon Sep 17 00:00:00 2001 From: Luc De Meyer Date: Fri, 24 Jul 2020 19:10:03 +0200 Subject: [PATCH] fix cfonb line terminator handling --- account_ebics/wizard/ebics_xfer.py | 1 + 1 file changed, 1 insertion(+) diff --git a/account_ebics/wizard/ebics_xfer.py b/account_ebics/wizard/ebics_xfer.py index a0bf6e5..e01bdf1 100644 --- a/account_ebics/wizard/ebics_xfer.py +++ b/account_ebics/wizard/ebics_xfer.py @@ -518,6 +518,7 @@ class EbicsXfer(models.TransientModel): self.ebics_config_id.order_number = next def _insert_line_terminator(self, data_in, line_len): + data_in = data_in.replace(b'\n', b'').replace(b'\r', b'') data_out = b'' max = len(data_in) i = 0