Skip to content
Snippets Groups Projects
Commit 191ff5a0879a authored by Stan Hu's avatar Stan Hu
Browse files

redis: Fix handling of passwords with a space

Previously we used `CGI.escape(password)`, but this escapes spaces as
`+` instead of `%20`. However, RFC 3986 says the password should be
percent-encoded. In fact, while the Ruby Redis client appears to
connect fine with the `+`, the Go client doesn't work with that.
Update the helper to encode passwords according to RFC 3986.

Changelog: fixed
parent 0a1e6d56ce70
No related branches found
No related tags found
1 merge request!137Remerge after conversion fixups
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment