Commit a6b0ddea authored by Felix Paul Kühne's avatar Felix Paul Kühne

lua-http: XML encode metadata before pushing it on the page (closes #15866)

parent 03159d8c
......@@ -49,7 +49,8 @@ local item = vlc.input.item()
if item then
local metas = item:metas()
for k,v in pairs(metas) do
print("<info name='"..httprequests.xmlString(k).."'>"..httprequests.xmlString(v).."</info>")
local metadataContent = vlc.strings.convert_xml_special_chars( httprequests.xmlString(v) )
print("<info name='"..httprequests.xmlString(k).."'>"..metadataContent.."</info>")
end
end
?>
......
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