From: Rainer Tammer Date: Thu, 25 May 2017 12:11:24 +0000 (+1200) Subject: Bug 3772: message from FTP server gets mangled X-Git-Tag: SQUID_4_0_20~12 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ea408f4e84fdb61b6d25084c3973a68f1ae5e38d;p=thirdparty%2Fsquid.git Bug 3772: message from FTP server gets mangled --- diff --git a/src/clients/FtpGateway.cc b/src/clients/FtpGateway.cc index a50f2825fe..55325ace3a 100644 --- a/src/clients/FtpGateway.cc +++ b/src/clients/FtpGateway.cc @@ -1514,7 +1514,7 @@ ftpReadCwd(Ftp::Gateway * ftpState) /* Reset cwd_message to only include the last message */ ftpState->cwd_message.reset(""); for (wordlist *w = ftpState->ctrl.message; w; w = w->next) { - ftpState->cwd_message.append(' '); + ftpState->cwd_message.append('\n'); ftpState->cwd_message.append(w->key); } ftpState->ctrl.message = NULL;