Browse Source

Fix bug in handling of special chars in proxy .bat files for binaries, fixes #4990

Jordi Boggiano 9 years ago
parent
commit
9d95456bb0
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/Composer/Installer/LibraryInstaller.php

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

@@ -333,6 +333,7 @@ class LibraryInstaller implements InstallerInterface
         }
 
         return "@ECHO OFF\r\n".
+            "setlocal DISABLEDELAYEDEXPANSION\r\n".
             "SET BIN_TARGET=%~dp0/".trim(ProcessExecutor::escape($binPath), '"')."\r\n".
             "{$caller} \"%BIN_TARGET%\" %*\r\n";
     }