Skip to content

Commit

Permalink
Merge pull request #4 from Sm1lEE
Browse files Browse the repository at this point in the history
fix: escape php_binary path to ensure correct usage as shell argument
  • Loading branch information
sebastianfeldmann committed Mar 21, 2024
2 parents 006ce94 + 8f5ecbe commit 3308a91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Installer.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function install(IOInterface $io, bool $force, bool $enabled): void
$onlyEnabled = $enabled ? ' --only-enabled' : '';

// sub process settings
$cmd = PHP_BINARY . ' ' . $executable . ' install'
$cmd = escapeshellarg(PHP_BINARY) . ' ' . $executable . ' install'
. $ansi . ' --no-interaction' . $forceOrSkip . $onlyEnabled
. $configuration . $repository;
$pipes = [];
Expand Down

0 comments on commit 3308a91

Please sign in to comment.