提交 0ff8353b 编写于 作者: S stephenconnolly

I am quite sure I had a good reason for wanting the length of a masked portion...

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
上级 b2c28f12
......@@ -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];
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册