aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Bachelier <laurent@bachelier.name>2011-02-10 23:56:27 +0100
committerLaurent Bachelier <laurent@bachelier.name>2011-02-10 23:56:27 +0100
commit54c2ace3fe2ee2d1dc918086a4036b38a9e31bbe (patch)
treee2b045e5ba10ddccdf8ac5b78cffc9ef15e8f8b7
parentColorize mksymlinks output (diff)
downloadsymfttpd-54c2ace3fe2ee2d1dc918086a4036b38a9e31bbe.tar.xz
Properly escape the genconf path
-rwxr-xr-xspawn2
1 files changed, 1 insertions, 1 deletions
diff --git a/spawn b/spawn
index 507b933..24a0a79 100755
--- a/spawn
+++ b/spawn
@@ -135,7 +135,7 @@ else
$prev_genconf = null;
while (false !== sleep(1))
{
- $handle = popen($options['php_cmd'].' '.$project_path.'/config/lighttpd.php', 'r');
+ $handle = popen($options['php_cmd'].' '.escapeshellarg($project_path.'/config/lighttpd.php'), 'r');
$genconf = stream_get_contents($handle);
pclose($handle);
if ($prev_genconf !== null && $prev_genconf !== $genconf)