]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 3772: message from FTP server gets mangled
authorRainer Tammer <rainer.tammer@schulergroup.com>
Mon, 29 May 2017 04:37:41 +0000 (16:37 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 29 May 2017 04:37:41 +0000 (16:37 +1200)
src/clients/FtpGateway.cc

index acc52c7fd2c5aa24b92176740ae9c3cead895601..bf9560d589d89c359400b38adbb13287a2400093 100644 (file)
@@ -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;