From 0ff8353b2bd1a0e3ff8dd6086704a31a3f6078ce Mon Sep 17 00:00:00 2001 From: stephenconnolly Date: Wed, 17 Oct 2007 08:23:31 +0000 Subject: [PATCH] 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 --- core/src/main/java/hudson/Launcher.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/hudson/Launcher.java b/core/src/main/java/hudson/Launcher.java index c7f26b10dc..2125169ded 100644 --- a/core/src/main/java/hudson/Launcher.java +++ b/core/src/main/java/hudson/Launcher.java @@ -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]; } -- GitLab