From da6df31ee9841a0724852d5a1d6aacf608c4538d Mon Sep 17 00:00:00 2001 From: Thomas Keller Date: Fri, 23 Dec 2011 17:37:29 +0100 Subject: [PATCH] Escape the path to the monotone binary in case it contains whitespaces. --- src/IDF/Scm/Monotone/Stdio.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/IDF/Scm/Monotone/Stdio.php b/src/IDF/Scm/Monotone/Stdio.php index 5409764..a9e6c7b 100644 --- a/src/IDF/Scm/Monotone/Stdio.php +++ b/src/IDF/Scm/Monotone/Stdio.php @@ -119,7 +119,7 @@ class IDF_Scm_Monotone_Stdio implements IDF_Scm_Monotone_IStdio $remote_db_access = Pluf::f('mtn_db_access', 'remote') == 'remote'; $cmd = Pluf::f('idf_exec_cmd_prefix', '') . - Pluf::f('mtn_path', 'mtn') . ' '; + escapeshellarg(Pluf::f('mtn_path', 'mtn')) . ' '; $opts = Pluf::f('mtn_opts', array()); foreach ($opts as $opt) {