mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-30 13:52:06 +08:00
Merge remote-tracking branch 'origin/GP-3121_ghidra1_ValidUsernames' into patch
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