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

index 0ae873d54dab349cc161c079892e9552cd0edf23..d7531ba67b77f0b09590bc239808f2f4d21c3922 100644 (file)
@@ -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;