[vlc-commits] cue.lua: fix double URL encoding of directory name

Lorenzo Pistone git at videolan.org
Sun Sep 18 12:45:08 CEST 2011


vlc/vlc-1.1 | branch: master | Lorenzo Pistone <lorenzo.pistone at studenti.unito.it> | Sun Sep 18 12:28:34 2011 +0200| [56a89678821483ba0cc9eb2da00f17b32197e382] | committer: Pierre Ynard

cue.lua: fix double URL encoding of directory name

Signed-off-by: Pierre Ynard <linkfanel at yahoo.fr>
(cherry picked from commit 7ffe01c7df0cca88e71b9079b961d05aee9b08de)

Signed-off-by: Pierre Ynard <linkfanel at yahoo.fr>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=56a89678821483ba0cc9eb2da00f17b32197e382
---

 share/lua/playlist/cue.lua |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/share/lua/playlist/cue.lua b/share/lua/playlist/cue.lua
index 5a673c7..4028f8a 100644
--- a/share/lua/playlist/cue.lua
+++ b/share/lua/playlist/cue.lua
@@ -46,7 +46,7 @@ function cue_path( src )
 		return src
 	end
 
-	local path = string.gsub( vlc.path, '\\', '/' )
+	local path = string.gsub( vlc.strings.decode_uri(vlc.path), '\\', '/' )
 	local slash = string.find( string.reverse( path ), '/' )
 	if( path == nil ) then
 		return src



More information about the vlc-commits mailing list