Browse Source

trim trailng slash from symlink names

symlink names are not allowed to contain
a trailing slash, so trim it.
Christoph Herbst 9 years ago
parent
commit
cbfd83ba0e
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/Composer/Downloader/PathDownloader.php

+ 1 - 0
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));
                 }