From 9d7f1a0865ee33ad89346543b78cfa5b6a3a43ab Mon Sep 17 00:00:00 2001 From: wessels <> Date: Thu, 2 Jul 1998 22:53:39 +0000 Subject: [PATCH] unescape special characters in names and passwords --- src/ftp.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- 2.47.3