From 035929fec75ffb3a28961ded182a258bcf92e486 Mon Sep 17 00:00:00 2001 From: doskel downtime Date: Mon, 1 Jun 2026 22:30:51 -0600 Subject: [PATCH] convert literal \n characters to the \r\n required for pyftpdlib to do newline --- copyparty/ftpd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/copyparty/ftpd.py b/copyparty/ftpd.py index 3b0ea9e6..f6a7b2f1 100644 --- a/copyparty/ftpd.py +++ b/copyparty/ftpd.py @@ -629,7 +629,7 @@ class Ftpd(object): FtpHandler.hub = h2.hub = hub FtpHandler.args = h2.args = hub.args FtpHandler.authorizer = h2.authorizer = FtpAuth(hub) - FtpHandler.banner = self.args.ftp_banner + FtpHandler.banner = self.args.ftp_banner.replace("\\n", "\r\n") if self.args.ftp_pr: p1, p2 = [int(x) for x in self.args.ftp_pr.split("-")] if self.args.ftp and self.args.ftps: