Merge pull request #7571 from rossi-fi/fix/master/7570
Strip leading slash left in front of drive letter by uri.path
This commit is contained in:
commit
581568cf5a
|
@ -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