From f11b6c3b94bc46261d9e9e5d809cdc66f2775cbc Mon Sep 17 00:00:00 2001 From: Ivan FB <128452529+Ivansete-status@users.noreply.github.com> Date: Wed, 23 Oct 2024 13:15:53 +0200 Subject: [PATCH] dbconn: allow uuid in requestId by allowing hyphen (#3139) --- waku/common/databases/db_postgres/dbconn.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/waku/common/databases/db_postgres/dbconn.nim b/waku/common/databases/db_postgres/dbconn.nim index 9a53a0d14..243c195c3 100644 --- a/waku/common/databases/db_postgres/dbconn.nim +++ b/waku/common/databases/db_postgres/dbconn.nim @@ -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: