diff --git a/lib/vagrant/util/downloader.rb b/lib/vagrant/util/downloader.rb index dd3abaa72..5e52eb674 100644 --- a/lib/vagrant/util/downloader.rb +++ b/lib/vagrant/util/downloader.rb @@ -27,10 +27,10 @@ module Vagrant @destination = destination.to_s begin - url = URI.parse(@source) + url = URI.parse(URI.escape(@source)) if url.scheme && url.scheme.start_with?("http") && url.user - auth = "#{url.user}" - auth += ":#{url.password}" if url.password + auth = "#{URI.unescape(url.user)}" + auth += ":#{URI.unescape(url.password)}" if url.password url.user = nil url.password = nil options[:auth] ||= auth