Strip leading slash left in front of drive letter by uri.path (see GH-7570).
This commit is contained in:
parent
a4f45a18a6
commit
4730602ceb
|
@ -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|
|
||||
|
|
Loading…
Reference in New Issue