mirror of
https://github.com/wiiu-env/ftpiiu_plugin.git
synced 2024-11-22 20:59:18 +01: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';
|
*delim = '\0';
|
||||||
decodePath (buffer, delim - buffer);
|
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;
|
char const *const command = buffer;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user