From 0a8c54ae57bf1b566987292d03f341efb0ba6a77 Mon Sep 17 00:00:00 2001 From: Johannes Schlatow Date: Tue, 12 Mar 2013 07:34:38 +0100 Subject: [PATCH] Bug (missing quotes in execute command) Fixed a bug where special characters within arguments passed to the "execute" command needed to be escaped twice. --- src/commands/CmdExec.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/CmdExec.cpp b/src/commands/CmdExec.cpp index 84b9bc9cd..c35a85338 100644 --- a/src/commands/CmdExec.cpp +++ b/src/commands/CmdExec.cpp @@ -59,7 +59,7 @@ int CmdExec::execute (std::string& output) if (command_line.length ()) command_line += " "; - command_line += arg->_raw; + command_line += "'" + arg->_raw + "'"; } }