diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2008-02-24 10:30:49 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2008-02-24 10:30:49 +0100 |
commit | ce7b0c94f76a9a8fa6a43b70428c0c38240d81b2 (patch) | |
tree | 4d7f33b89cbc0865afd730e800daccf5afe01ebb /recording.c | |
parent | 088c325e8f6f6bb70a2588a9eb6278c0795245af (diff) | |
download | vdr-ce7b0c94f76a9a8fa6a43b70428c0c38240d81b2.tar.gz vdr-ce7b0c94f76a9a8fa6a43b70428c0c38240d81b2.tar.bz2 |
Added the backslash ('\') to the list of characters that need to be escaped when executing external commands1.5.16
Diffstat (limited to 'recording.c')
-rw-r--r-- | recording.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/recording.c b/recording.c index 4ecf4a96..1535b46b 100644 --- a/recording.c +++ b/recording.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: recording.c 1.161 2008/02/16 13:31:39 kls Exp $ + * $Id: recording.c 1.162 2008/02/24 10:28:53 kls Exp $ */ #include "recording.h" @@ -1161,7 +1161,7 @@ const char *cRecordingUserCommand::command = NULL; void cRecordingUserCommand::InvokeCommand(const char *State, const char *RecordingFileName) { if (command) { - cString cmd = cString::sprintf("%s %s \"%s\"", command, State, *strescape(RecordingFileName, "\"$")); + cString cmd = cString::sprintf("%s %s \"%s\"", command, State, *strescape(RecordingFileName, "\\\"$")); isyslog("executing '%s'", *cmd); SystemExec(cmd); } |