From cbfd83ba0eda7f732ccc81d000162aaa6ce5e1c2 Mon Sep 17 00:00:00 2001 From: Christoph Herbst Date: Thu, 7 Apr 2016 12:55:52 +0200 Subject: [PATCH] trim trailng slash from symlink names symlink names are not allowed to contain a trailing slash, so trim it. --- src/Composer/Downloader/PathDownloader.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Composer/Downloader/PathDownloader.php b/src/Composer/Downloader/PathDownloader.php index e44fc155e..66bb5c32d 100644 --- a/src/Composer/Downloader/PathDownloader.php +++ b/src/Composer/Downloader/PathDownloader.php @@ -84,6 +84,7 @@ class PathDownloader extends FileDownloader $absolutePath = getcwd() . DIRECTORY_SEPARATOR . $path; } $shortestPath = $this->filesystem->findShortestPath($absolutePath, $realUrl); + $path = rtrim($path,"/"); $fileSystem->symlink($shortestPath, $path); $this->io->writeError(sprintf(' Symlinked from %s', $url)); }