[vlc-commits] sftp: fix opening urls with encoded chars
Petri Hintukainen
git at videolan.org
Wed Mar 16 17:32:57 CET 2016
vlc | branch: master | Petri Hintukainen <phintuka at gmail.com> | Sun Feb 28 14:52:42 2016 +0200| [bc54b6b67a4581a74c49e43991306a2a59d7bb5a] | committer: Thomas Guillem
sftp: fix opening urls with encoded chars
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".
Signed-off-by: Thomas Guillem <thomas at gllm.fr>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=bc54b6b67a4581a74c49e43991306a2a59d7bb5a
---
modules/access/sftp.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/modules/access/sftp.c b/modules/access/sftp.c
index 78acccb..032e28d 100644
--- a/modules/access/sftp.c
+++ b/modules/access/sftp.c
@@ -158,6 +158,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 ) )
More information about the vlc-commits
mailing list