Explorar o código

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

Sami Jawhar %!s(int64=9) %!d(string=hai) anos
pai
achega
9d2db57f65
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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";
     }