From 9d2db57f65c77839b38f172787af0edad0d0b6c2 Mon Sep 17 00:00:00 2001 From: Sami Jawhar Date: Wed, 13 Apr 2016 16:42:51 -0700 Subject: [PATCH] BinaryInstaller::generateWindowsProxyCode() now trims both single and double quotes from $binPath when creating windows .bat file. --- src/Composer/Installer/BinaryInstaller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Installer/BinaryInstaller.php b/src/Composer/Installer/BinaryInstaller.php index a02477bba..bbf57f8bf 100644 --- a/src/Composer/Installer/BinaryInstaller.php +++ b/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"; }