1
0
Fork 0

Fix regex

pull/1573/merge
Jordi Boggiano 2013-04-28 12:01:58 +02:00
parent 5cdf40d165
commit 81d55544f7
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ class ProcessExecutor
$process = new Process($command, $cwd, null, null, static::getTimeout());
if ($this->io && $this->io->isDebug()) {
$safeCommand = preg_replace('{(//[^:]+:)[^@]+}', '$1****', $command);
$safeCommand = preg_replace('{(://[^:/\s]+:)[^@\s/]+}i', '$1****', $command);
$this->io->write('Executing command ('.($cwd ?: 'CWD').'): '.$safeCommand);
}