Fixing SensioLabs Insight 'Critical' violations.
This commit is contained in:
parent
4d91bd15e7
commit
9379da1393
2 changed files with 6 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue