Properly quote file names for the system call.

This commit is contained in:
Thomas Keller 2011-10-09 01:39:05 +02:00
parent e1e7696d53
commit efa10c9afd

View File

@ -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';