Commit 273a7a9c authored by Rob Jonson's avatar Rob Jonson Committed by Jean-Baptiste Kempf

luaHttp: Support drivelist for win32

Close #3687
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent ce6a3a0e
...@@ -346,6 +346,11 @@ getbrowsetable = function () ...@@ -346,6 +346,11 @@ getbrowsetable = function ()
dir = _GET["dir"] dir = _GET["dir"]
end end
--backwards compatibility with old format driveLetter:\\..
--this is forgiving with the slash type and number
local position=string.find(dir, '%a:[\\/]*%.%.',0)
if position==1 then dir="" end
local result={} local result={}
--paths are returned as an array of elements --paths are returned as an array of elements
result.element={} result.element={}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment