[vlc-devel] [PATCH 6/6] support drivelist from c:\\.. and similar
Rob Jonson
rob at hobbyistsoftware.com
Wed Sep 28 14:05:18 CEST 2011
---
share/lua/intf/modules/httprequests.lua | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/share/lua/intf/modules/httprequests.lua b/share/lua/intf/modules/httprequests.lua
index d727e16..04888d7 100644
--- a/share/lua/intf/modules/httprequests.lua
+++ b/share/lua/intf/modules/httprequests.lua
@@ -346,6 +346,11 @@ getbrowsetable = function ()
dir = _GET["dir"]
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={}
--paths are returned as an array of elements
result.element={}
--
1.7.5
More information about the vlc-devel
mailing list