mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-13 09:39:33 +01:00
Restrict username minimum length too (3 chars)
This commit is contained in:
1 parent
77e575dd65
commit
6ebbb434e4
7 files changed
+19
-9
No files matched your search
+1
-1
@@ -608,7 +608,7 @@ static std::string DefaultInfrastructureUsername() {
|
||||
// NOTE: This type of dependency means that network settings must be AFTER system settings in sections[].
|
||||
if (g_Config.sNickName != "PPSSPP" &&
|
||||
!g_Config.sNickName.empty() &&
|
||||
g_Config.sNickName == SanitizeString(g_Config.sNickName, StringRestriction::AlphaNumDashUnderscore, 16)) {
|
||||
g_Config.sNickName == SanitizeString(g_Config.sNickName, StringRestriction::AlphaNumDashUnderscore, 3, 16)) {
|
||||
return g_Config.sNickName;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user