Fixing SensioLabs Insight 'Critical' violations.

This commit is contained in:
Dan Cryer 2015-02-12 10:39:41 +00:00
commit 9d2005d8e8
2 changed files with 6 additions and 2 deletions

View file

@ -22,6 +22,9 @@ class WindowsCommandExecutor extends BaseCommandExecutor
*/
protected function findGlobalBinary($binary)
{
return trim(shell_exec('where ' . $binary));
$command = sprintf('where %s', $binary);
$result = shell_exec($command);
return trim($result);
}
}