MCPcopy
hub / github.com/tinode/chat / sanitizeKey

Function sanitizeKey

server/auth/code/auth_code.go:199–201  ·  view source on GitHub ↗

Replace all occurrences of '%' with '/' to ensure SQL LIKE query works correctly.

(key string)

Source from the content-addressed store, hash-verified

197
198// Replace all occurrences of '%' with '/' to ensure SQL LIKE query works correctly.
199func sanitizeKey(key string) string {
200 return strings.ReplaceAll(key, "%", "/")
201}
202
203const realName = "code"
204

Callers 2

AuthenticateMethod · 0.85
GenSecretMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…