Commit debfaaa1 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Do not allow variable substitution in MRL path schemas

parent 7c75fc26
...@@ -2834,6 +2834,12 @@ void MRLSplit( char *psz_dup, const char **ppsz_access, const char **ppsz_demux, ...@@ -2834,6 +2834,12 @@ void MRLSplit( char *psz_dup, const char **ppsz_access, const char **ppsz_demux,
psz_demux = strchr( psz_access, '/' ); psz_demux = strchr( psz_access, '/' );
if( psz_demux ) if( psz_demux )
*psz_demux++ = '\0'; *psz_demux++ = '\0';
/* We really don't want module name substitution here! */
if( psz_access[0] == '$' )
psz_access++;
if( psz_demux && psz_demux[0] == '$' )
psz_demux++;
} }
else else
{ {
......
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