mirror of https://github.com/waku-org/nwaku.git
dbconn: allow uuid in requestId by allowing hyphen (#3139)
This commit is contained in:
parent
edcb0e15f2
commit
8106abb9dd
|
@ -222,7 +222,7 @@ proc containsRiskyPatterns(input: string): bool =
|
|||
|
||||
proc isSecureString(input: string): bool =
|
||||
## Returns `false` if the string contains risky characters or patterns, `true` otherwise.
|
||||
let riskyChars = {'\'', '\"', ';', '-', '#', '\\', '%', '_', '/', '*', '\0'}
|
||||
let riskyChars = {'\'', '\"', ';', '#', '\\', '%', '_', '/', '*', '\0'}
|
||||
|
||||
for ch in input:
|
||||
if ch in riskyChars:
|
||||
|
|
Loading…
Reference in New Issue