Commit f94e53d3 authored by Rob Jonson's avatar Rob Jonson Committed by Rémi Denis-Courmont

uri should be made from path without special xml chars currently, html...

uri should be made from path without special xml chars currently, html entities are being inserted in the uri
Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
parent d6083f05
...@@ -389,12 +389,12 @@ getbrowsetable = function () ...@@ -389,12 +389,12 @@ getbrowsetable = function ()
element["path"]=path element["path"]=path
element["name"]=name element["name"]=name
local uri=vlc.strings.make_uri(path) local uri=vlc.strings.make_uri(df)
--windows paths are returned with / separators, but make_uri expects \ for windows and returns nil --windows paths are returned with / separators, but make_uri expects \ for windows and returns nil
if not uri then if not uri then
--convert failed path to windows format and try again --convert failed path to windows format and try again
path=string.gsub(path,"/","\\") path=string.gsub(path,"/","\\")
uri=vlc.strings.make_uri(path) uri=vlc.strings.make_uri(df)
end end
element["uri"]=uri element["uri"]=uri
......
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