mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-10-22 18:22:23 -09:00
GP-3121 allow Ghidra Server usernames to start with a numeric digit
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user