]> git.sesse.net Git - vlc/commitdiff
Fix lua error reported by ConfusedVorlon.
authorAntoine Cellerier <antoine@macbook.(none)>
Mon, 14 Dec 2009 22:39:44 +0000 (23:39 +0100)
committerAntoine Cellerier <antoine@macbook.(none)>
Mon, 14 Dec 2009 22:39:44 +0000 (23:39 +0100)
share/lua/http/requests/status.xml

index 007b7ae1a6f3291d30c8b8ac7109069a32865d5e..ea473a3eba4bef5dcdffe5106615900416a12da8 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.replace('&','&amp;').."</info>")
+            print("<info name='"..k2.."'>"..string.gsub(v2,'&','&amp;').."</info>")
           end
         print("</category>")
       end