🎨 Improve cloud dir name check

This commit is contained in:
Liang Ding 2022-07-06 19:13:13 +08:00
parent 5a8a7f946b
commit 072a97af90
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
2 changed files with 9 additions and 3 deletions

View file

@ -1265,7 +1265,7 @@ func formatErrorMsg(err error) string {
}
func IsValidCloudDirName(cloudDirName string) bool {
if 16 < utf8.RuneCountInString(cloudDirName) {
if 16 < utf8.RuneCountInString(cloudDirName) || 1 > utf8.RuneCountInString(cloudDirName) {
return false
}