]> git.sesse.net Git - vlc/commitdiff
Fix quoted values containing # in VLM shell.
authorAntoine Cellerier <dionoea@videolan.org>
Fri, 5 Mar 2010 18:37:03 +0000 (19:37 +0100)
committerAntoine Cellerier <dionoea@videolan.org>
Fri, 5 Mar 2010 18:37:03 +0000 (19:37 +0100)
(close #3154, thanks to Marnik Vander Elst)

src/input/vlmshell.c

index 27c97e08e9ae49646c290b1fb330b2416f402ab2..602530425217778aa434d0a869f2aa3439d75484 100644 (file)
@@ -134,7 +134,7 @@ static int Unescape( char *out, const char *in )
         // Don't escape the end of the string if we find a '#'
         // that's the begining of a vlc command
         // TODO: find a better solution
-        if( c == '#' || param )
+        if( ( c == '#' && !quote ) || param )
         {
             param = true;
             *out++ = c;