[vlc-devel] [PATCH 2/2] http: fix up URLs
Rémi Denis-Courmont
remi at remlab.net
Fri Oct 9 09:26:40 CEST 2020
Same as 1.
-1
Le 9 octobre 2020 09:56:59 GMT+03:00, Thomas Guillem <thomas at gllm.fr> a écrit :
>This will allow VLC to open unvalid URLs (using a space instead of the
>%20 encoding, for example). Every other browsers or players are doing
>this fixup.
>
>Fixes #3435
>---
> modules/access/http.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>diff --git a/modules/access/http.c b/modules/access/http.c
>index 4384e2b0a3c..d95284b4ea9 100644
>--- a/modules/access/http.c
>+++ b/modules/access/http.c
>@@ -167,7 +167,7 @@ static int Open( vlc_object_t *p_this )
> p_sys->size = 0;
> p_access->p_sys = p_sys;
>
>- if( vlc_UrlParse( &p_sys->url, psz_url ) || p_sys->url.psz_host ==
>NULL )
>+ if( vlc_UrlParseFixup( &p_sys->url, psz_url ) ||
>p_sys->url.psz_host == NULL )
> {
> msg_Err( p_access, "invalid URL" );
> vlc_UrlClean( &p_sys->url );
>--
>2.28.0
>
>_______________________________________________
>vlc-devel mailing list
>To unsubscribe or modify your subscription options:
>https://mailman.videolan.org/listinfo/vlc-devel
--
Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20201009/157d04f1/attachment.html>
More information about the vlc-devel
mailing list