mirror of
https://github.com/wiiu-env/ftpiiu_plugin.git
synced 2024-11-26 14:44:16 +01:00
Hide user/pass arguments in log
This commit is contained in:
parent
fdbdfa679b
commit
2f668bd7c2
@ -1424,6 +1424,9 @@ void FtpSession::readCommand (int const events_)
|
||||
|
||||
*delim = '\0';
|
||||
decodePath (buffer, delim - 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