Commit 9240002a 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
(cherry picked from commit 4046e4c0)
parent 13c7f68b
...@@ -2348,7 +2348,12 @@ static int InputSourceInit( input_thread_t *p_input, ...@@ -2348,7 +2348,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