Commit e619c098 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

oldrc: Accept backward compatible hosts

Fix #19871

(cherry picked from commit 8c1c9a43)
Signed-off-by: default avatarHugo Beauzée-Luyssen <hugo@beauzee.fr>
parent 58ff92d3
......@@ -304,6 +304,19 @@ static int Activate( vlc_object_t *p_this )
vlc_url_t url;
vlc_UrlParse( &url, psz_host );
if( url.psz_host == NULL )
{
vlc_UrlClean( &url );
char *psz_backward_compat_host;
if( asprintf( &psz_backward_compat_host, "//%s", psz_host ) < 0 )
{
free( psz_host );
return VLC_EGENERIC;
}
free( psz_host );
psz_host = psz_backward_compat_host;
vlc_UrlParse( &url, psz_host );
}
msg_Dbg( p_intf, "base: %s, port: %d", url.psz_host, url.i_port );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment