From e99b40244b452acaf400d42a45cb688d6b3cd9b3 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 d3a218c..5b2a218 100644 --- a/account_ebics/wizard/ebics_xfer.py +++ b/account_ebics/wizard/ebics_xfer.py @@ -522,6 +522,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