From 6baee635397a59fb8b9581ab943c59944daef57e Mon Sep 17 00:00:00 2001 From: Luke Alford Date: Mon, 23 Oct 2023 00:16:42 +1100 Subject: [PATCH] fix(packages/db): special characters in passwords (#1087) --- packages/database/src/db/parseUri.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/database/src/db/parseUri.ts b/packages/database/src/db/parseUri.ts index dc7ca466f..1902eb078 100644 --- a/packages/database/src/db/parseUri.ts +++ b/packages/database/src/db/parseUri.ts @@ -13,7 +13,7 @@ export const parseUri = (connectionUri: string) => { port: parseInt(parsedUrl.port), database: parsedUrl.pathname.slice(1), user: parsedUrl.username, - password: parsedUrl.password, + password: decodeURIComponent(parsedUrl.password), }; parsedUrl.searchParams.forEach((value: string, key: keyof NPWDConnectionOptions) => { try {