From: Rainer Tammer Date: Mon, 29 May 2017 04:37:41 +0000 (+1200) Subject: Bug 3772: message from FTP server gets mangled X-Git-Tag: SQUID_3_5_26~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b4339793c5ec70288ab9d583a21d3c1fdfc0520;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 acc52c7fd2..bf9560d589 100644 --- a/src/clients/FtpGateway.cc +++ b/src/clients/FtpGateway.cc @@ -1541,7 +1541,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;