[vlc-devel] [PATCH] sftp: fix opening urls with encoded chars

Petri Hintukainen phintuka at gmail.com
Sun Feb 28 13:52:42 CET 2016


Without this change opening paths with special chars (space, ...) fail.
Ex. path "/media/Let's Be Cops" was opened as "/media/Let%27s%20Be%20Cops".
---
 modules/access/sftp.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/access/sftp.c b/modules/access/sftp.c
index 942e24f..37b6940 100644
--- a/modules/access/sftp.c
+++ b/modules/access/sftp.c
@@ -127,6 +127,7 @@ static int Open( vlc_object_t* p_this )
 
     /* Parse the URL */
     vlc_UrlParse( &url, p_access->psz_location );
+    vlc_uri_decode( url.psz_path );
 
     /* Check for some parameters */
     if( EMPTY_STR( url.psz_host ) )
-- 
2.5.0



More information about the vlc-devel mailing list