From 84388e767a589dabe7a775230755f374d1e53c0d Mon Sep 17 00:00:00 2001 From: Warnar Boekkooi Date: Fri, 14 Mar 2014 17:43:21 +0800 Subject: [PATCH] Added missing escapeshellarg --- bin/subsplit-worker.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/subsplit-worker.php b/bin/subsplit-worker.php index 11573d5..40e4b05 100644 --- a/bin/subsplit-worker.php +++ b/bin/subsplit-worker.php @@ -74,8 +74,8 @@ } $command = implode(' && ', array( - sprintf('cd %s', $projectWorkingDirectory), - sprintf('( git subsplit init %s || true )', $repositoryUrl), + sprintf('cd %s', escapeshellarg($projectWorkingDirectory)), + sprintf('( git subsplit init %s || true )', escapeshellarg($repositoryUrl)), 'git subsplit update', implode(' ', $publishCommand) ));