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
parent
d4043c084a
commit
923f2459cf
|
@ -417,7 +417,10 @@ namespace OpenSim.Framework.Console
|
||||||
SetCursorLeft(0);
|
SetCursorLeft(0);
|
||||||
y = SetCursorTop(y);
|
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;
|
break;
|
||||||
case ConsoleKey.End:
|
case ConsoleKey.End:
|
||||||
|
|
Loading…
Reference in New Issue