[vlc-devel] commit: Fix lua error reported by ConfusedVorlon. (Antoine Cellerier )

git version control git at videolan.org
Mon Dec 14 23:40:10 CET 2009


vlc | branch: master | Antoine Cellerier <antoine at macbook.(none)> | Mon Dec 14 23:39:44 2009 +0100| [23d7733092997372a1bd8502b3f2a0e558039818] | committer: Antoine Cellerier 

Fix lua error reported by ConfusedVorlon.

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

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

diff --git a/share/lua/http/requests/status.xml b/share/lua/http/requests/status.xml
index 007b7ae..ea473a3 100644
--- a/share/lua/http/requests/status.xml
+++ b/share/lua/http/requests/status.xml
@@ -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('&','&').."</info>")
+            print("<info name='"..k2.."'>"..string.gsub(v2,'&','&').."</info>")
           end
         print("</category>")
       end




More information about the vlc-devel mailing list