From: Rainer Tammer Date: Tue, 16 May 2017 06:48:07 +0000 (+1200) Subject: Bug 3772: message from FTP server gets mangled X-Git-Tag: M-staged-PR71~179 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b1e321fcbb035d4679029a1359ad7ed6dc60f7c0;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 0ae873d54d..d7531ba67b 100644 --- a/src/clients/FtpGateway.cc +++ b/src/clients/FtpGateway.cc @@ -1513,7 +1513,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;