From: wessels <> Date: Thu, 2 Jul 1998 22:53:39 +0000 (+0000) Subject: unescape special characters in names and passwords X-Git-Tag: SQUID_3_0_PRE1~3114 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9d7f1a0865ee33ad89346543b78cfa5b6a3a43ab;p=thirdparty%2Fsquid.git unescape special characters in names and passwords --- diff --git a/src/ftp.cc b/src/ftp.cc index aa120848cf..17c070f1db 100644 --- a/src/ftp.cc +++ b/src/ftp.cc @@ -1,6 +1,6 @@ /* - * $Id: ftp.cc,v 1.232 1998/06/30 23:10:16 wessels Exp $ + * $Id: ftp.cc,v 1.233 1998/07/02 16:53:39 wessels Exp $ * * DEBUG: section 9 File Transfer Protocol (FTP) * AUTHOR: Harvest Derived @@ -292,9 +292,11 @@ ftpLoginParser(const char *login, FtpStateData * ftpState) if ((s = strchr(ftpState->user, ':'))) { *s = 0; xstrncpy(ftpState->password, s + 1, MAX_URL); + rfc1738_unescape(ftpState->password); } else { xstrncpy(ftpState->password, null_string, MAX_URL); } + rfc1738_unescape(ftpState->user); if (ftpState->user[0] || ftpState->password[0]) return; xstrncpy(ftpState->user, "anonymous", MAX_URL);