mirror of
https://github.com/9001/copyparty.git
synced 2026-06-20 21:22:26 -06:00
convert literal \n characters to the \r\n required for pyftpdlib to do newline
This commit is contained in:
parent
187f843b75
commit
035929fec7
|
|
@ -629,7 +629,7 @@ class Ftpd(object):
|
||||||
FtpHandler.hub = h2.hub = hub
|
FtpHandler.hub = h2.hub = hub
|
||||||
FtpHandler.args = h2.args = hub.args
|
FtpHandler.args = h2.args = hub.args
|
||||||
FtpHandler.authorizer = h2.authorizer = FtpAuth(hub)
|
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:
|
if self.args.ftp_pr:
|
||||||
p1, p2 = [int(x) for x in self.args.ftp_pr.split("-")]
|
p1, p2 = [int(x) for x in self.args.ftp_pr.split("-")]
|
||||||
if self.args.ftp and self.args.ftps:
|
if self.args.ftp and self.args.ftps:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue