]> git.sesse.net Git - vlc/blobdiff - src/input/vlmshell.c
Fix quoted values containing # in VLM shell.
[vlc] / 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;