From 923f2459cfa8106c6de52dc694c700ab07d8109b Mon Sep 17 00:00:00 2001 From: Kevin Houlihan Date: Wed, 14 Sep 2011 22:10:43 +0100 Subject: Passwords could be revealed in console by pressing backspace. Pressing backspace causes hidden input (such as passwords) to be revealed on the console. The echo state was not being taken into account when handling a backspace key press. --- OpenSim/Framework/Console/LocalConsole.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'OpenSim/Framework') diff --git a/OpenSim/Framework/Console/LocalConsole.cs b/OpenSim/Framework/Console/LocalConsole.cs index eda41b8..05a3aee 100644 --- a/OpenSim/Framework/Console/LocalConsole.cs +++ b/OpenSim/Framework/Console/LocalConsole.cs @@ -417,7 +417,10 @@ namespace OpenSim.Framework.Console SetCursorLeft(0); y = SetCursorTop(y); - System.Console.Write("{0}{1} ", prompt, cmdline); + if (echo) + System.Console.Write("{0}{1} ", prompt, cmdline); + else + System.Console.Write("{0}", prompt); break; case ConsoleKey.End: -- cgit v1.1