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