Escape the xml file path arg.

This commit is contained in:
Thomas Keller 2012-04-20 00:50:24 +02:00
parent d5394265ba
commit 8cd19c0f53

View File

@ -2,7 +2,7 @@
<?php <?php
$xmlfile = dirname(__FILE__) .'/test/report.xml'; $xmlfile = dirname(__FILE__) .'/test/report.xml';
passthru('phpunit --coverage-clover='.$xmlfile); passthru('phpunit --coverage-clover='.escapeshellarg($xmlfile));
$xml = simplexml_load_string(file_get_contents($xmlfile)); $xml = simplexml_load_string(file_get_contents($xmlfile));
unlink($xmlfile); unlink($xmlfile);
printf( printf(