]> git.sesse.net Git - vlc/commitdiff
replace & -> &, quick fix for status working with fileinfos with & in them.
authorIlkka Ollakka <ileoo@videolan.org>
Wed, 23 Jul 2008 12:33:57 +0000 (15:33 +0300)
committerIlkka Ollakka <ileoo@videolan.org>
Wed, 23 Jul 2008 12:35:29 +0000 (15:35 +0300)
share/lua/http/requests/status.xml

index 0021001cb11228d67bfd408c715daa906791a095..007b7ae1a6f3291d30c8b8ac7109069a32865d5e 100644 (file)
@@ -122,7 +122,7 @@ local vout = input and vlc.object.find(input,'vout','child')
       for k, v in pairs(info) do
         print("<category name='"..k.."'>")
           for k2, v2 in pairs(v) do
-            print("<info name='"..k2.."'>"..v2.."</info>")
+            print("<info name='"..k2.."'>"..v2.replace('&','&amp;').."</info>")
           end
         print("</category>")
       end