From 41423fe8aa71cc9da34e1b6e3c80fa5675093ae0 Mon Sep 17 00:00:00 2001 From: leibale Date: Thu, 11 Nov 2021 17:43:17 -0500 Subject: [PATCH] fix #1716 - decode username and password from url --- packages/client/lib/client/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/client/lib/client/index.ts b/packages/client/lib/client/index.ts index dd1bf83334..05c219ca52 100644 --- a/packages/client/lib/client/index.ts +++ b/packages/client/lib/client/index.ts @@ -101,11 +101,11 @@ export default class RedisClient } if (username) { - parsed.username = username; + parsed.username = decodeURIComponent(username); } if (password) { - parsed.password = password; + parsed.password = decodeURIComponent(password); } if (pathname.length > 1) {