[vlc-devel] [PATCH] sftp: fix url decoding
Rémi Denis-Courmont
remi at remlab.net
Wed Jan 20 13:18:28 CET 2016
Nack. This makes no sense.
Le 2016-01-20 14:12, Petri Hintukainen a écrit :
> ---
> 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 ) )
--
Rémi Denis-Courmont
http://www.remlab.net/
More information about the vlc-devel
mailing list