Skip to content

Commit

Permalink
fix(packages/db): special characters in passwords (#1087)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukealford authored Oct 22, 2023
1 parent c62e10f commit 6baee63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/database/src/db/parseUri.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 6baee63

Please sign in to comment.