You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
fix #1716 - decode username and password from url
This commit is contained in:
@@ -101,11 +101,11 @@ export default class RedisClient<M extends RedisModules, S extends RedisScripts>
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (username) {
|
if (username) {
|
||||||
parsed.username = username;
|
parsed.username = decodeURIComponent(username);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (password) {
|
if (password) {
|
||||||
parsed.password = password;
|
parsed.password = decodeURIComponent(password);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pathname.length > 1) {
|
if (pathname.length > 1) {
|
||||||
|
Reference in New Issue
Block a user