summaryrefslogtreecommitdiff
path: root/src/redis-cli.c
diff options
context:
space:
mode:
authorItamar Haber <itamar@redislabs.com>2020-11-12 19:19:18 +0200
committerGitHub <noreply@github.com>2020-11-12 19:19:18 +0200
commit92ec5925202db79944e267f3bc367ec3d7bdd6fe (patch)
tree11444305cff0ab827327bfb1156dab6d79e4aaf6 /src/redis-cli.c
parentc170365dcf4698080aeac32e4209ebb2ef7c6c6c (diff)
downloadredis-92ec5925202db79944e267f3bc367ec3d7bdd6fe.tar.gz
Adds user parsing to redis-cli URIs (#8048)
Diffstat (limited to 'src/redis-cli.c')
-rw-r--r--src/redis-cli.c2
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;
}