I am quite sure I had a good reason for wanting the length of a masked portion of a command to be equal to the length of the thing that is masked... but for the life of me I cannot remember why. Making all masks have fixed length to provide less information to password snoopers

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@5303 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
stephenconnolly committed 2007-10-17 08:23:31 +00:00
1 parent b2c28f1278
commit 0ff8353b2b
1 file changed
+1 -1
+1 -1
View File
@@ -256,7 +256,7 @@ public abstract class Launcher {
final String[] masked = new String[cmd.length];
for (int i = 0; i < cmd.length; i++) {
if (mask[i]) {
masked[i] = "********************************************************".substring(0, cmd[i].length());
masked[i] = "********";
} else {
masked[i] = cmd[i];
}