Commit 4046e4c0 authored by Pierre Ynard's avatar Pierre Ynard

Accept file:// URIs starting with an antislash

Yes it's invalid, but there's little point in rejecting it
parent c4402537
...@@ -2350,7 +2350,12 @@ static int InputSourceInit( input_thread_t *p_input, ...@@ -2350,7 +2350,12 @@ static int InputSourceInit( input_thread_t *p_input,
* for non-standard VLC-specific schemes. */ * for non-standard VLC-specific schemes. */
if( !strcmp( psz_access, "file" ) ) if( !strcmp( psz_access, "file" ) )
{ {
if( psz_path[0] != '/' ) if( psz_path[0] != '/'
#if (DIR_SEP_CHAR != '/')
/* We accept invalid URIs too. */
&& psz_path[0] != DIR_SEP_CHAR
#endif
)
{ /* host specified -> not supported currently */ { /* host specified -> not supported currently */
msg_Err( p_input, "cannot open remote file `%s://%s'", msg_Err( p_input, "cannot open remote file `%s://%s'",
psz_access, psz_path ); psz_access, psz_path );
......
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