Browse Source

apply patch

Rob Bast 8 years ago
parent
commit
e60eff5f2e
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/Composer/Util/ProcessExecutor.php

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

@@ -44,12 +44,12 @@ class ProcessExecutor
     public function execute($command, &$output = null, $cwd = null)
     {
         if ($this->io && $this->io->isDebug()) {
-            $safeCommand = preg_replace_callback('{(://)(?P<user>[^:/\s]+):(?P<password>[^@\s/]+)}i', function ($m) {
+            $safeCommand = preg_replace_callback('{://(?P<user>[^:/\s]+):(?P<password>[^@\s/]+)@}i', function ($m) {
                 if (preg_match('{^[a-f0-9]{12,}$}', $m['user'])) {
-                    return '://***:***';
+                    return '://***:***@';
                 }
 
-                return '://'.$m['user'].':***';
+                return '://'.$m['user'].':***@';
             }, $command);
             $this->io->writeError('Executing command ('.($cwd ?: 'CWD').'): '.$safeCommand);
         }