We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6ac1b4 commit 57db2a8Copy full SHA for 57db2a8
src/ComposerPlugin.php
@@ -172,8 +172,8 @@ private function runCaptainCommand(string $command): void
172
$interaction = $this->io->isInteractive() ? '' : ' --no-interaction';
173
174
// captainhook config and repository settings
175
- $configuration = ' -c ' . $this->configuration;
176
- $repository = $command === self::COMMAND_INSTALL ? ' -g ' . $this->gitDirectory : '';
+ $configuration = ' -c ' . escapeshellarg($this->configuration);
+ $repository = $command === self::COMMAND_INSTALL ? ' -g ' . escapeshellarg($this->gitDirectory) : '';
177
$skip = $command === self::COMMAND_INSTALL ? ' -s' : '';
178
179
// sub process settings
0 commit comments