]> sjero.net Git - wget/blobdiff - src/ftp-basic.c
[svn] Fix escape chars in server response vulnerability. Server response is
[wget] / src / ftp-basic.c
index a246e37c8f5f5f5a16694f212962bcaa9801d6d6..011268b2d58b11ef2f372b7a0f201cc5b0483312 100644 (file)
@@ -67,9 +67,9 @@ ftp_response (int fd, char **ret_line)
       if (!line)
        return FTPRERR;
       if (opt.server_response)
-        logputs (LOG_NOTQUIET, line);
+        logputs (LOG_NOTQUIET, escnonprint (line));
       else
-        DEBUGP (("%s", line));
+        DEBUGP (("%s", escnonprint (line)));
       if (ISDIGIT (line[0]) && ISDIGIT (line[1]) && ISDIGIT (line[2])
          && line[3] == ' ')
        {