Skip to content

Commit

Permalink
Merge pull request #265 from winebarrel/fix_connect_string_parse
Browse files Browse the repository at this point in the history
Fix connect string parse: URI decode user/password/database
  • Loading branch information
winebarrel committed Nov 27, 2018
2 parents 243a99f + 37f2f3b commit 4c70957
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/ridgepole/cli/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ def parse_database_url(config)

{
'adapter' => uri.scheme,
'username' => uri.user,
'password' => uri.password,
'username' => CGI.unescape(uri.user),
'password' => CGI.unescape(uri.password),
'host' => uri.host,
'port' => uri.port,
'database' => uri.path.sub(%r{\A/}, ''),
'database' => CGI.unescape(uri.path.sub(%r{\A/}, '')),
}
end
end
Expand Down

0 comments on commit 4c70957

Please sign in to comment.