[vlc-devel] commit: Do not allow variable substitution in MRL path schemas ( Rémi Denis-Courmont )

git version control git at videolan.org
Thu May 15 19:38:21 CEST 2008


vlc | branch: master | Rémi Denis-Courmont <rem at videolan.org> | Thu May 15 20:39:45 2008 +0300| [debfaaa1a843326ca254daab1479f34ad30deab7]

Do not allow variable substitution in MRL path schemas

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=debfaaa1a843326ca254daab1479f34ad30deab7
---

 src/input/input.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/input/input.c b/src/input/input.c
index 60ee778..976dc57 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -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
     {




More information about the vlc-devel mailing list