Fixed Uri::parseUrl($url) with no path

This commit is contained in:
Matias Griese
2018-08-07 22:46:23 +03:00
parent d59fe2fa3c
commit 816a3ebd93

View File

@@ -881,6 +881,9 @@ class Uri
{
$grav = Grav::instance();
$parts = parse_url($url);
if (!isset($parts['path'])) {
$parts['path'] = '';
}
list($stripped_path, $params) = static::extractParams($parts['path'], $grav['config']->get('system.param_sep'));