]> git.sesse.net Git - vlc/commitdiff
Remove stripslashes for input mrl. It's wrong and was only needed for the old interna...
authorRob Jonson <rob@hobbyistsoftware.com>
Tue, 27 Sep 2011 09:45:28 +0000 (10:45 +0100)
committerRémi Denis-Courmont <remi@remlab.net>
Tue, 27 Sep 2011 15:06:24 +0000 (18:06 +0300)
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
share/lua/intf/modules/httprequests.lua

index 8e7bcc6b344dc94deca0e91aa1a9c840564f92ad..f68683adae3a3c7c70e5a4ce6c391ab58ce0c90a 100644 (file)
 module("httprequests",package.seeall)
 
 
---input utilities
 
-local function stripslashes(s)
-  return string.gsub(s,"\\(.)","%1")
-end
 
 --Round the number to the specified precision
 function round(what, precision)
@@ -87,11 +83,11 @@ processcommands = function ()
          end
          vlc.msg.err( "</options>" )
          --]]
-         vlc.playlist.add({{path=stripslashes(input),options=options}})
+         vlc.playlist.add({{path=input,options=options}})
        elseif command == "addsubtitle" then
-         vlc.input.add_subtitle (stripslashes(val))
+         vlc.input.add_subtitle (val)
        elseif command == "in_enqueue" then
-         vlc.playlist.enqueue({{path=stripslashes(input),options=options}})
+         vlc.playlist.enqueue({{path=input,options=options}})
        elseif command == "pl_play" then
          if id == -1 then
                vlc.playlist.play()