#752696: properly escape arguments and the call to the PHP binary, to support having the PHP binary in a path that contains a space.

From: Damien Tournoud <damien@tournoud.net>


---
 run-tests.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git scripts/run-tests.sh scripts/run-tests.sh
index 748fbbe..5a52bae 100755
--- scripts/run-tests.sh
+++ scripts/run-tests.sh
@@ -380,7 +380,7 @@ function simpletest_script_run_one_test($test_id, $test_class) {
 function simpletest_script_command($concurrency, $test_id, $tests) {
   global $args, $php;
 
-  $command = "$php ./scripts/{$args['script']} --url {$args['url']}";
+  $command = escapeshellarg($php) . ' ' . escapeshellarg('./scripts/' . $args['script']) . ' --url ' . escapeshellarg($args['url']);
   if ($args['color']) {
     $command .= ' --color';
   }
