Explorar o código

Do not reveal input length

Jordi Boggiano %!s(int64=13) %!d(string=hai) anos
pai
achega
35cca1ed7f
Modificáronse 1 ficheiros con 1 adicións e 5 borrados
  1. 1 5
      src/Composer/IO/ConsoleIO.php

+ 1 - 5
src/Composer/IO/ConsoleIO.php

@@ -129,11 +129,7 @@ class ConsoleIO implements IOInterface
             $value = rtrim(shell_exec($command));
             unlink($vbscript);
 
-            for ($i = 0; $i < strlen($value); ++$i) {
-                $this->write('*', false);
-            }
-
-            $this->write('');
+            $this->write('***');
 
             return $value;
         }