aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorKevin Houlihan2011-09-14 22:10:43 +0100
committerJustin Clark-Casey (justincc)2011-09-16 19:25:38 +0100
commit923f2459cfa8106c6de52dc694c700ab07d8109b (patch)
tree0abb87d415702952e61eb16db1622293f470bda8
parentMSSQL Bug fix in user account retrieval, plus migrations for FriendsStore and... (diff)
downloadopensim-SC_OLD-923f2459cfa8106c6de52dc694c700ab07d8109b.zip
opensim-SC_OLD-923f2459cfa8106c6de52dc694c700ab07d8109b.tar.gz
opensim-SC_OLD-923f2459cfa8106c6de52dc694c700ab07d8109b.tar.bz2
opensim-SC_OLD-923f2459cfa8106c6de52dc694c700ab07d8109b.tar.xz
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.
-rw-r--r--OpenSim/Framework/Console/LocalConsole.cs5
1 files changed, 4 insertions, 1 deletions
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
417 SetCursorLeft(0); 417 SetCursorLeft(0);
418 y = SetCursorTop(y); 418 y = SetCursorTop(y);
419 419
420 System.Console.Write("{0}{1} ", prompt, cmdline); 420 if (echo)
421 System.Console.Write("{0}{1} ", prompt, cmdline);
422 else
423 System.Console.Write("{0}", prompt);
421 424
422 break; 425 break;
423 case ConsoleKey.End: 426 case ConsoleKey.End: