mirror of
https://github.com/mtheall/ftpd.git
synced 2024-11-23 09:39:43 +00:00
Hide user/pass arguments in log
This commit is contained in:
parent
fdbdfa679b
commit
2f668bd7c2
@ -1424,7 +1424,10 @@ void FtpSession::readCommand (int const events_)
|
||||
|
||||
*delim = '\0';
|
||||
decodePath (buffer, delim - buffer);
|
||||
command ("%s\n", buffer);
|
||||
if (::strncasecmp ("USER ", buffer, 5) == 0 || ::strncasecmp ("PASS ", buffer, 5) == 0)
|
||||
command ("%.*s ******\n", 5, buffer);
|
||||
else
|
||||
command ("%s\n", buffer);
|
||||
|
||||
char const *const command = buffer;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user