Unverified Commit 92ec5925 authored by Itamar Haber's avatar Itamar Haber Committed by GitHub
Browse files

Adds user parsing to redis-cli URIs (#8048)

parent c170365d
...@@ -411,7 +411,7 @@ static void parseRedisUri(const char *uri) { ...@@ -411,7 +411,7 @@ static void parseRedisUri(const char *uri) {
/* Extract user info. */ /* Extract user info. */
if ((userinfo = strchr(curr,'@'))) { if ((userinfo = strchr(curr,'@'))) {
if ((username = strchr(curr, ':')) && username < userinfo) { if ((username = strchr(curr, ':')) && username < userinfo) {
/* If provided, username is ignored. */ config.user = percentDecode(curr, username - curr);
curr = username + 1; curr = username + 1;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment