Bladeren bron

Fix regex

Jordi Boggiano 12 jaren geleden
bovenliggende
commit
81d55544f7
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      src/Composer/Util/ProcessExecutor.php

+ 1 - 1
src/Composer/Util/ProcessExecutor.php

@@ -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);
         }