浏览代码

Fix missing trailing / in repository paths

Dennis Birkholz 9 年之前
父节点
当前提交
2fb7dd881a
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/Composer/Repository/PathRepository.php

+ 2 - 2
src/Composer/Repository/PathRepository.php

@@ -104,8 +104,8 @@ class PathRepository extends ArrayRepository
         $foundPackage = false;
 
         foreach ($this->getPaths() as $path) {
-            $path = realpath($path);
-            
+            $path = realpath($path) . '/';
+
             $composerFilePath = $path.'composer.json';
             if (!file_exists($composerFilePath)) {
                 continue;