[vlc-devel] [PATCH 2/7] Remove stripslashes for input mrl. It's wrong and was only needed for the old internal web client

Rob Jonson rob at hobbyistsoftware.com
Tue Sep 27 11:45:28 CEST 2011


---
 share/lua/intf/modules/httprequests.lua |   10 +++-------
 1 files changed, 3 insertions(+), 7 deletions(-)

diff --git a/share/lua/intf/modules/httprequests.lua b/share/lua/intf/modules/httprequests.lua
index 8e7bcc6..f68683a 100644
--- a/share/lua/intf/modules/httprequests.lua
+++ b/share/lua/intf/modules/httprequests.lua
@@ -25,11 +25,7 @@
 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()
-- 
1.7.5




More information about the vlc-devel mailing list