Skip to content

Commit

Permalink
password could contain numerous special character that would break yo…
Browse files Browse the repository at this point in the history
…ur URI
  • Loading branch information
pmq20 authored and pietern committed Oct 5, 2012
1 parent 19ed380 commit f6e4a9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/redis/client.rb
Expand Up @@ -329,7 +329,7 @@ def _parse_options(options)
defaults[:scheme] = uri.scheme
defaults[:host] = uri.host
defaults[:port] = uri.port if uri.port
defaults[:password] = uri.password if uri.password
defaults[:password] = CGI::unescape(uri.password) if uri.password
defaults[:db] = uri.path[1..-1].to_i if uri.path
end
end
Expand Down

0 comments on commit f6e4a9b

Please sign in to comment.