Browse Source

Anchor pattern

pfofi 5 years ago
parent
commit
e7f02be9ff
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Composer/Repository/ComposerRepository.php

+ 1 - 1
src/Composer/Repository/ComposerRepository.php

@@ -562,7 +562,7 @@ class ComposerRepository extends ArrayRepository implements ConfigurableReposito
     protected function canonicalizeUrl($url)
     {
         if ('/' === $url[0]) {
-            if (preg_match('{[^:]+://[^/]*}', $this->url, $matches)) {
+            if (preg_match('{^[^:]+://[^/]*}', $this->url, $matches)) {
                 return $matches[0] . $url;
             }