From bf42e9c4f14ce424435ef6c4515fa7db4a8bcce7 Mon Sep 17 00:00:00 2001 From: MaxXor Date: Wed, 27 May 2015 19:50:27 +0200 Subject: [PATCH] Trim start of Remote Shell commands (#216) --- Server/Forms/FrmRemoteShell.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Server/Forms/FrmRemoteShell.cs b/Server/Forms/FrmRemoteShell.cs index b3a142ab..612325b8 100644 --- a/Server/Forms/FrmRemoteShell.cs +++ b/Server/Forms/FrmRemoteShell.cs @@ -42,7 +42,7 @@ private void txtConsoleInput_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter && !string.IsNullOrEmpty(txtConsoleInput.Text.Trim())) { - string input = txtConsoleInput.Text; + string input = txtConsoleInput.Text.TrimStart(); txtConsoleInput.Text = string.Empty; bool isExit = (input.StartsWith("exit") && input.Length > "exit".Length && input[4] == ' ') || input == "exit";