[vlc-commits] http intf: fix unescaped xml entities

Francois Cartegnie git at videolan.org
Mon Sep 19 23:40:48 CEST 2011


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Sep 19 23:39:54 2011 +0200| [83af97080329e587e3271850ce97ffc007ed7883] | committer: Francois Cartegnie

http intf: fix unescaped xml entities

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=83af97080329e587e3271850ce97ffc007ed7883
---

 share/lua/http/requests/status.xml |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/share/lua/http/requests/status.xml b/share/lua/http/requests/status.xml
index 866e13d..c84f917 100644
--- a/share/lua/http/requests/status.xml
+++ b/share/lua/http/requests/status.xml
@@ -49,7 +49,7 @@ local item = vlc.input.item()
       if item then
         local metas = item:metas()
         for k,v in pairs(metas) do
-          print("<info name='"..k.."'>"..vlc.strings.convert_xml_special_chars(v).."</info>")
+          print("<info name='"..vlc.strings.convert_xml_special_chars(k).."'>"..vlc.strings.convert_xml_special_chars(v).."</info>")
         end
       end
     ?>
@@ -58,9 +58,9 @@ local item = vlc.input.item()
     if item then
       local info = item:info()
       for k, v in pairs(info) do
-        print("<category name='"..k.."'>")
+        print("<category name='"..vlc.strings.convert_xml_special_chars(k).."'>")
           for k2, v2 in pairs(v) do
-            print("<info name='"..k2.."'>"..vlc.strings.convert_xml_special_chars(v2).."</info>")
+            print("<info name='"..vlc.strings.convert_xml_special_chars(k2).."'>"..vlc.strings.convert_xml_special_chars(v2).."</info>")
           end
         print("</category>")
       end



More information about the vlc-commits mailing list