Sfoglia il codice sorgente

BinaryInstaller::generateWindowsProxyCode() now trims both single and double quotes from $binPath when creating windows .bat file.

Sami Jawhar 9 anni fa
parent
commit
9d2db57f65
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/Composer/Installer/BinaryInstaller.php

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

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