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.
remove-scene-viewer
Kevin Houlihan 2011-09-14 22:10:43 +01:00 committed by Justin Clark-Casey (justincc)
parent d4043c084a
commit 923f2459cf
1 changed files with 4 additions and 1 deletions

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: