소스 검색

Force github URLs to be in the normalized browser-accessible format

Jordi Boggiano 9 년 전
부모
커밋
b7989e059c
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/Packagist/WebBundle/Entity/Package.php

+ 1 - 0
src/Packagist/WebBundle/Entity/Package.php

@@ -370,6 +370,7 @@ class Package
             return;
         }
 
+        $repoUrl = preg_replace('{^git@github.com:}i', 'https://github.com/', $repoUrl);
         $this->repository = $repoUrl;
 
         // avoid user@host URLs