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

Rémi Denis-Courmont remi at remlab.net
Mon Feb 29 05:43:01 CET 2016


Le 2016-02-28 14:52, Petri Hintukainen a écrit :
> 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 );

Isn't that supposed to be p_access->psz_path ?

>
>      /* 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