Skip to content

Commit

Permalink
Escape base directory name when building shell command
Browse files Browse the repository at this point in the history
  • Loading branch information
morozov committed May 15, 2017
1 parent 5847603 commit 7ce7bb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Filters/GitModified.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ protected function getWhitelist()
{
$modified = array();

$cmd = 'git ls-files -o -m --exclude-standard -- '.$this->basedir;
$cmd = 'git ls-files -o -m --exclude-standard -- ' . escapeshellarg($this->basedir);
$output = array();
exec($cmd, $output);

Expand Down

0 comments on commit 7ce7bb9

Please sign in to comment.