Explorar o código

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

Jordi Boggiano %!s(int64=9) %!d(string=hai) anos
pai
achega
b7989e059c
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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