Merge pull request #7569 from rossi-fi/fix/master/7568
Use RFC- and cURL-friendly file:/// URI. Fixes #7568.
This commit is contained in:
commit
7ed6bb5bef
|
@ -34,7 +34,7 @@ module Vagrant
|
|||
u = u.gsub("\\", "/")
|
||||
if Util::Platform.windows? && u =~ /^[a-z]:/i
|
||||
# On Windows, we need to be careful about drive letters
|
||||
u = "file://#{URI.escape(u)}"
|
||||
u = "file:///#{URI.escape(u)}"
|
||||
end
|
||||
|
||||
if u =~ /^[a-z0-9]+:.*$/i && !u.start_with?("file://")
|
||||
|
|
Loading…
Reference in New Issue