Skip to content

Commit

Permalink
Fixed Uri::parseUrl($url) with no path
Browse files Browse the repository at this point in the history
  • Loading branch information
mahagr committed Aug 7, 2018
1 parent d59fe2f commit 816a3eb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions system/src/Grav/Common/Uri.php
Original file line number Diff line number Diff line change
Expand Up @@ -881,6 +881,9 @@ public static function parseUrl($url)
{
$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'));

Expand Down

0 comments on commit 816a3eb

Please sign in to comment.