Commit 202f9ae0 authored by Jérome Decoodt's avatar Jérome Decoodt

Fix user:pass parsing if protocol is not given.

Not tested with all calls (only http access module)
parent 3c047a9d
...@@ -112,8 +112,8 @@ static inline void vlc_UrlParse( vlc_url_t *url, const char *psz_url, ...@@ -112,8 +112,8 @@ static inline void vlc_UrlParse( vlc_url_t *url, const char *psz_url,
if( p[1] == '/' ) if( p[1] == '/' )
p += 2; p += 2;
url->psz_protocol = psz_parse; url->psz_protocol = psz_parse;
psz_parse = p; psz_parse = p;
}
p = strchr( psz_parse, '@' ); p = strchr( psz_parse, '@' );
if( p != NULL ) if( p != NULL )
{ {
...@@ -131,7 +131,6 @@ static inline void vlc_UrlParse( vlc_url_t *url, const char *psz_url, ...@@ -131,7 +131,6 @@ static inline void vlc_UrlParse( vlc_url_t *url, const char *psz_url,
psz_parse = p; psz_parse = p;
} }
}
p = strchr( psz_parse, '/' ); p = strchr( psz_parse, '/' );
if( !p || psz_parse < p ) if( !p || psz_parse < p )
......
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