Strip leading slash left in front of drive letter by uri.path (see GH-7570).

This commit is contained in:
Markus Rossi 2016-07-12 15:20:04 +03:00
parent a4f45a18a6
commit 4730602ceb
1 changed files with 2 additions and 0 deletions

View File

@ -472,6 +472,8 @@ module Vagrant
if uri.scheme == "file"
url = uri.path
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')
begin
File.open(url, "r") do |f|