From 898d3ab9ce18c8d8e01fd96e5314e6fe836e5710 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/wizards/ebics_xfer.py | 1 + 1 file changed, 1 insertion(+) diff --git a/account_ebics/wizards/ebics_xfer.py b/account_ebics/wizards/ebics_xfer.py index 0bfa18f..8166462 100644 --- a/account_ebics/wizards/ebics_xfer.py +++ b/account_ebics/wizards/ebics_xfer.py @@ -532,6 +532,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