From 79a5dc19313c31ec0e109730a0b20389d3bfcd63 Mon Sep 17 00:00:00 2001 From: Luca Degasperi Date: Wed, 27 Jun 2012 17:31:38 +0200 Subject: [PATCH] Using escapeshellarg instead of putting backshlashes in front of spaces Signed-off-by: Luca Degasperi --- laravel/cli/tasks/test/runner.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/laravel/cli/tasks/test/runner.php b/laravel/cli/tasks/test/runner.php index e13a42d9..953c9857 100644 --- a/laravel/cli/tasks/test/runner.php +++ b/laravel/cli/tasks/test/runner.php @@ -82,7 +82,8 @@ protected function test() $path = path('base').'phpunit.xml'; // fix the spaced directories problem when using the command line - $path = str_replace(" ", "\\ ", $path); + // strings with spaces inside should be wrapped in quotes. + $path = escapeshellarg($path) passthru('phpunit --configuration '.$path);