]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 3772: message from FTP server gets mangled
authorRainer Tammer <rainer.tammer@schulergroup.com>
Thu, 25 May 2017 12:11:24 +0000 (00:11 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Thu, 25 May 2017 12:11:24 +0000 (00:11 +1200)
src/clients/FtpGateway.cc

index a50f2825fef65f900a3783121e80b91b5f77a634..55325ace3a40a66df9dd6abee4f26d150c8d06e9 100644 (file)
@@ -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;