Skip to content

Commit 94c89b6

Browse files
Printing out full command for command[] argument. Using arrays.tolist() which adds a [] around the text. that should be cleaned up.
git-svn-id: http://webgoat.googlecode.com/svn/trunk/webgoat@473 4033779f-a91e-0410-96ef-6bf7bf53c507
1 parent 7b4f554 commit 94c89b6

File tree

1 file changed

+2
-1
lines changed
  • src/main/java/org/owasp/webgoat/util

1 file changed

+2
-1
lines changed

src/main/java/org/owasp/webgoat/util/Exec.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import java.io.IOException;
66
import java.io.InputStream;
77
import java.io.OutputStream;
8+
import java.util.Arrays;
89
import java.util.BitSet;
910

1011

@@ -95,7 +96,7 @@ public static ExecResults execOptions(String[] command, String input, int succes
9596
Process child = null;
9697
ByteArrayOutputStream output = new ByteArrayOutputStream();
9798
ByteArrayOutputStream errors = new ByteArrayOutputStream();
98-
ExecResults results = new ExecResults(command[0], input, successCode, timeout);
99+
ExecResults results = new ExecResults(Arrays.asList(command).toString(), input, successCode, timeout);
99100
BitSet interrupted = new BitSet(1);
100101
boolean lazyQuit = false;
101102
ThreadWatcher watcher;

0 commit comments

Comments
 (0)