Explorar el Código

Fix windows proxy code

Jordi Boggiano hace 12 años
padre
commit
935eaa9646
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/Composer/Installer/LibraryInstaller.php

+ 1 - 1
src/Composer/Installer/LibraryInstaller.php

@@ -226,7 +226,7 @@ class LibraryInstaller implements InstallerInterface
             $line = fgets($handle);
             fclose($handle);
             if (preg_match('{^#!/(?:usr/bin/env )?(?:[^/]+/)*(.+)$}m', $line, $match)) {
-                $caller = $match[1];
+                $caller = trim($match[1]);
             } else {
                 $caller = 'php';
             }