lib/hanami/model/sql/consoles/postgresql.rb in hanami-model-1.0.1 vs lib/hanami/model/sql/consoles/postgresql.rb in hanami-model-1.0.2

- old
+ new

@@ -1,6 +1,7 @@ require_relative 'abstract' +require 'cgi' module Hanami module Model module Sql module Consoles @@ -57,10 +58,10 @@ end # @since 0.7.0 # @api private def configure_password - ENV[PASSWORD] = @uri.password unless @uri.password.nil? + ENV[PASSWORD] = CGI.unescape(@uri.password) unless @uri.password.nil? end end end end end