[vlc-devel] [PATCH] sftp: fix url decoding
Petri Hintukainen
phintuka at gmail.com
Wed Jan 20 13:12:03 CET 2016
---
modules/access/sftp.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/modules/access/sftp.c b/modules/access/sftp.c
index ece9e95..b1809e5 100644
--- a/modules/access/sftp.c
+++ b/modules/access/sftp.c
@@ -130,7 +130,11 @@ static int Open( vlc_object_t* p_this )
vlc_credential_init( &credential, &credential_url );
/* Parse the URL */
- vlc_UrlParse( &url, p_access->psz_location );
+ char *psz_decoded_url = vlc_uri_decode_duplicate( p_access->psz_location );
+ if( psz_decoded_url == NULL )
+ goto error;
+ vlc_UrlParse( &url, psz_decoded_url );
+ free( psz_decoded_url );
/* Check for some parameters */
if( EMPTY_STR( url.psz_host ) )
--
2.5.0
More information about the vlc-devel
mailing list