Restrict username minimum length too (3 chars)

This commit is contained in:
Henrik Rydgård committed 2025-01-07 18:09:19 +01:00
1 parent 77e575dd65
commit 6ebbb434e4
7 files changed
+19 -9

No files matched your search

+1 -1
View File
@@ -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;
}