From 7d1c77f523dfa10789ee7993f3390c60e36fb2c6 Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Thu, 20 Apr 2017 15:36:13 -0700 Subject: [PATCH] Unescape url to provide actual local path when adding box Fixes #6825 --- lib/vagrant/action/builtin/box_add.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/vagrant/action/builtin/box_add.rb b/lib/vagrant/action/builtin/box_add.rb index 44dc0654a..316420490 100644 --- a/lib/vagrant/action/builtin/box_add.rb +++ b/lib/vagrant/action/builtin/box_add.rb @@ -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|