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.
This commit is contained in:
Kevin Houlihan
2011-09-14 22:10:43 +01:00
committed by Justin Clark-Casey (justincc)
parent d4043c084a
commit 923f2459cf

View File

@@ -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: