Sanitize strings by default on all platforms.
Instead of sanitizing strings only on iOS, we do it on all platforms.
This commit is contained in:
parent
04803505f8
commit
4971d78a53
4 changed files with 11 additions and 16 deletions
|
|
@ -1,8 +1,7 @@
|
|||
//go:build !ios
|
||||
// +build !ios
|
||||
|
||||
package crypto
|
||||
|
||||
import "strings"
|
||||
|
||||
func sanitizeString(input string) string {
|
||||
return input
|
||||
return strings.ToValidUTF8(input, "\ufffd")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue