[vlc-devel] [PATCH 2/2] http: fix up URLs

Thomas Guillem thomas at gllm.fr
Fri Oct 9 08:56:59 CEST 2020


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



More information about the vlc-devel mailing list