use & instead of , for fragments

This commit is contained in:
Dennis Eichhorn 2020-12-20 20:01:59 +01:00
parent 04c1927c96
commit 51c9d71e02

View File

@ -213,7 +213,7 @@ final class HttpUri implements UriInterface
$this->query = \array_change_key_case($this->query, \CASE_LOWER);
$this->fragment = $url['fragment'] ?? '';
$this->fragments = \explode(',', $url['fragment'] ?? '');
$this->fragments = \explode('&', $url['fragment'] ?? '');
$this->base = $this->scheme . '://' . $this->host . ($this->port !== 80 ? ':' . $this->port : '') . $this->rootPath;
}