Merge pull request #1356 from sk-ys/master
Remove a drive letter when using WebDAV in Windows
This commit is contained in:
commit
f415d6c643
@ -143,6 +143,8 @@ module Dav4rack
|
|||||||
collection = path.end_with?('/')
|
collection = path.end_with?('/')
|
||||||
path = ::File.expand_path path
|
path = ::File.expand_path path
|
||||||
path << '/' if collection and !path.end_with?('/')
|
path << '/' if collection and !path.end_with?('/')
|
||||||
|
# remove a drive letter in Windows
|
||||||
|
path.gsub!(/^([^\/]*)\//, '/')
|
||||||
path
|
path
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user