mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-04 06:53:12 +00:00
dbconn: allow uuid in requestId by allowing hyphen (#3139)
This commit is contained in:
parent
9d2b931567
commit
f11b6c3b94
@ -222,7 +222,7 @@ proc containsRiskyPatterns(input: string): bool =
|
|||||||
|
|
||||||
proc isSecureString(input: string): bool =
|
proc isSecureString(input: string): bool =
|
||||||
## Returns `false` if the string contains risky characters or patterns, `true` otherwise.
|
## Returns `false` if the string contains risky characters or patterns, `true` otherwise.
|
||||||
let riskyChars = {'\'', '\"', ';', '-', '#', '\\', '%', '_', '/', '*', '\0'}
|
let riskyChars = {'\'', '\"', ';', '#', '\\', '%', '_', '/', '*', '\0'}
|
||||||
|
|
||||||
for ch in input:
|
for ch in input:
|
||||||
if ch in riskyChars:
|
if ch in riskyChars:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user