convert literal \n characters to the \r\n required for pyftpdlib to do newline

This commit is contained in:
doskel downtime 2026-06-01 22:30:51 -06:00
parent 187f843b75
commit 035929fec7

View file

@ -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: