1
0
Fork 0

Anchor pattern

pull/8136/head
pfofi 2019-05-11 16:27:39 +02:00
parent c751914410
commit e7f02be9ff
1 changed files with 1 additions and 1 deletions

View File

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