From efa10c9afd508374442bc154397aed11536e9e1f Mon Sep 17 00:00:00 2001 From: Thomas Keller Date: Sun, 9 Oct 2011 01:39:05 +0200 Subject: [PATCH] Properly quote file names for the system call. --- test/bootstrap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/bootstrap.php b/test/bootstrap.php index 7c10d09..148dfb2 100644 --- a/test/bootstrap.php +++ b/test/bootstrap.php @@ -21,7 +21,7 @@ if (file_exists($testconfig['db_database'])) { } echo ">>> creating empty test database...\n"; -passthru('php ' . PLUF_PATH . '/migrate.php --conf=' . TESTDIR . '/config.php -a -i'); +passthru('php ' . escapeshellarg(PLUF_PATH.'/migrate.php') . ' --conf=' . escapeshellarg(TESTDIR.'/config.php').' -a -i'); echo ">>> setting up web application...\n"; require 'Pluf.php';