Escape the xml file path arg.
This commit is contained in:
		| @@ -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( | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user