mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-22 04:27:19 +01:00
Fix string.Contains call
This commit is contained in:
@@ -301,7 +301,7 @@ namespace Tgstation.Server.Host.Security
|
||||
return;
|
||||
}
|
||||
|
||||
if (username.Contains(':'))
|
||||
if (username.Contains(':', StringComparison.Ordinal))
|
||||
{
|
||||
tokenValidatedContext.Fail("Cannot create users with the ':' in their name!");
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user