From 816a3ebd9357362264e9c278cba2abd0372aefca Mon Sep 17 00:00:00 2001 From: Matias Griese Date: Tue, 7 Aug 2018 22:46:23 +0300 Subject: [PATCH] Fixed Uri::parseUrl($url) with no path --- system/src/Grav/Common/Uri.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/system/src/Grav/Common/Uri.php b/system/src/Grav/Common/Uri.php index b17323926..67eb8471e 100644 --- a/system/src/Grav/Common/Uri.php +++ b/system/src/Grav/Common/Uri.php @@ -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'));