diff options
author | Itamar Haber <itamar@redislabs.com> | 2020-11-12 19:19:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-12 19:19:18 +0200 |
commit | 92ec5925202db79944e267f3bc367ec3d7bdd6fe (patch) | |
tree | 11444305cff0ab827327bfb1156dab6d79e4aaf6 /src/redis-cli.c | |
parent | c170365dcf4698080aeac32e4209ebb2ef7c6c6c (diff) | |
download | redis-92ec5925202db79944e267f3bc367ec3d7bdd6fe.tar.gz |
Adds user parsing to redis-cli URIs (#8048)
Diffstat (limited to 'src/redis-cli.c')
-rw-r--r-- | src/redis-cli.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/redis-cli.c b/src/redis-cli.c index 44ea504c9..c09a6b798 100644 --- a/src/redis-cli.c +++ b/src/redis-cli.c @@ -411,7 +411,7 @@ static void parseRedisUri(const char *uri) { /* Extract user info. */ if ((userinfo = strchr(curr,'@'))) { if ((username = strchr(curr, ':')) && username < userinfo) { - /* If provided, username is ignored. */ + config.user = percentDecode(curr, username - curr); curr = username + 1; } |