]> git.sesse.net Git - vlc/commitdiff
Do not allow variable substitution in MRL path schemas
authorRémi Denis-Courmont <rem@videolan.org>
Thu, 15 May 2008 17:39:45 +0000 (20:39 +0300)
committerRémi Denis-Courmont <rem@videolan.org>
Thu, 15 May 2008 17:39:45 +0000 (20:39 +0300)
src/input/input.c

index 60ee778eb8756cf690f237de397c012ca30e0844..976dc573d5468faa956290f38c6f59847702f3cb 100644 (file)
@@ -2834,6 +2834,12 @@ void MRLSplit( char *psz_dup, const char **ppsz_access, const char **ppsz_demux,
         psz_demux = strchr( psz_access, '/' );
         if( psz_demux )
             *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
     {