Merge remote-tracking branch 'origin/GP-3121_ghidra1_ValidUsernames' into patch

This commit is contained in:
Ryan Kurtz
2023-02-22 08:16:16 -05:00
@@ -752,7 +752,7 @@ public class UserManager {
* Regex: matches if the entire string is alpha, digit, ".", "-", "_", fwd or back slash.
*/
private static final Pattern VALID_USERNAME_REGEX =
Pattern.compile("[a-zA-Z][a-zA-Z0-9.\\-_/\\\\]*");
Pattern.compile("[a-zA-Z0-9][a-zA-Z0-9.\\-_/\\\\]*");
/**
* Ensures a name only contains valid characters and meets length limitations.