mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-10 02:26:18 +00:00
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:
1 parent
b2c28f1278
commit
0ff8353b2b
1 file changed
+1
-1
@@ -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];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user