Protect/Prevent user names from using valid HG identifiers.

Signed-off-by: UbitUmarov <ajlduarte@sapo.pt>
0.9.1.0-post-fixes
Bill Blight 2018-09-17 07:45:06 -07:00 committed by UbitUmarov
parent c643b4236f
commit bd4907e960
1 changed files with 2 additions and 2 deletions

View File

@ -388,8 +388,8 @@ namespace OpenSim.Services.UserAccountService
string rawPrincipalId; string rawPrincipalId;
string model; string model;
List<char> excluded = new List<char>(new char[]{' '}); // List<char> excluded = new List<char>(new char[]{' '});
List<char> excluded = new List<char>(new char[]{' ', '@', '.', ':' }); //Protect user names from using valid HG identifiers.
if (cmdparams.Length < 3) if (cmdparams.Length < 3)
firstName = MainConsole.Instance.CmdPrompt("First name", "Default", excluded); firstName = MainConsole.Instance.CmdPrompt("First name", "Default", excluded);
else firstName = cmdparams[2]; else firstName = cmdparams[2];