]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
don't expose given passwords in error messages
authorwessels <>
Fri, 15 Jan 1999 06:55:40 +0000 (06:55 +0000)
committerwessels <>
Fri, 15 Jan 1999 06:55:40 +0000 (06:55 +0000)
src/ftp.cc

index 1f75a241d3c6af2572bcffa4f56ffd4e3586df1d..5c544759702efaa38762dd08ecdabef4a5372de2 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: ftp.cc,v 1.263 1999/01/12 23:37:43 wessels Exp $
+ * $Id: ftp.cc,v 1.264 1999/01/14 23:55:40 wessels Exp $
  *
  * DEBUG: section 9     File Transfer Protocol (FTP)
  * AUTHOR: Harvest Derived
@@ -2198,6 +2198,10 @@ ftpFail(FtpStateData * ftpState)
        err->ftp.request = ftpState->old_request;
     else
        err->ftp.request = ftpState->ctrl.last_command;
+    if (err->ftp.request) {
+        if (!strncmp(err->ftp.request, "PASS", 4))
+           err->ftp.request = "PASS <yourpassword>";
+    }
     if (ftpState->old_reply)
        err->ftp.reply = ftpState->old_reply;
     else