Merge pull request #8503 from chrisroberts/fix/box-add-spaces

Unescape url to provide actual local path when adding box
This commit is contained in:
Chris Roberts 2017-04-20 16:10:01 -07:00 committed by GitHub
commit 60187f2b17
1 changed files with 1 additions and 0 deletions

View File

@ -478,6 +478,7 @@ module Vagrant
url ||= uri.opaque
#7570 Strip leading slash left in front of drive letter by uri.path
Util::Platform.windows? && url.gsub!(/^\/([a-zA-Z]:)/, '\1')
url = URI.unescape(url)
begin
File.open(url, "r") do |f|