diff --git a/lib/katapaty/configuration.rb b/lib/katapaty/configuration.rb index 4a01986..b47f1fc 100644 --- a/lib/katapaty/configuration.rb +++ b/lib/katapaty/configuration.rb @@ -12,13 +12,13 @@ class Configuration def counterparty_url return 'http://rpc:1234@public.coindaddy.io:14000/api/' unless @host - "#{protocol}://#{@username}:#{@password}@#{@host}:#{@port}/api/" + "#{protocol}://#{@username}:#{CGI.escape(@password)}@#{@host}:#{@port}/api/" end def counterblock_url return 'http://rpc:1234@public.coindaddy.io:14100/api/' unless @block_host authen = '' - authen = "#{@block_username}:#{@block_password}@" if @block_username + authen = "#{@block_username}:#{CGI.escape(@block_password)}@" if @block_username "#{protocol}://#{authen}#{@block_host}:#{@block_port}/api/" end