mirror of
https://github.com/getgrav/grav.git
synced 2026-07-09 14:22:46 +02:00
Fixed Uri::parseUrl($url) with no path
This commit is contained in:
@@ -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'));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user