mirror of
https://github.com/status-im/status-go.git
synced 2025-01-12 07:35:02 +00:00
fix_: bio length check (#5074)
This commit is contained in:
parent
68bc9d39fd
commit
70a9996d82
@ -6,6 +6,7 @@ import (
|
||||
"fmt"
|
||||
"runtime"
|
||||
"strings"
|
||||
"unicode/utf8"
|
||||
|
||||
utils "github.com/status-im/status-go/common"
|
||||
"github.com/status-im/status-go/multiaccounts/settings"
|
||||
@ -100,7 +101,7 @@ func (m *Messenger) SaveSyncDisplayName(displayName string, clock uint64) error
|
||||
}
|
||||
|
||||
func ValidateBio(bio *string) error {
|
||||
if len(*bio) > maxBioLength {
|
||||
if utf8.RuneCountInString(*bio) > maxBioLength {
|
||||
return ErrInvalidBioLength
|
||||
}
|
||||
return nil
|
||||
|
Loading…
x
Reference in New Issue
Block a user