[vlc-commits] Remove stripslashes for input mrl. It' s wrong and was only needed for the old internal web client
Rob Jonson
git at videolan.org
Tue Sep 27 17:07:28 CEST 2011
vlc | branch: master | Rob Jonson <rob at hobbyistsoftware.com> | Tue Sep 27 10:45:28 2011 +0100| [7984b19c0c0edeabe567e8f2dbd7be3c7ba942c7] | committer: Rémi Denis-Courmont
Remove stripslashes for input mrl. It's wrong and was only needed for the old internal web client
Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7984b19c0c0edeabe567e8f2dbd7be3c7ba942c7
---
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()
More information about the vlc-commits
mailing list