rewrite_relative: use isset() to check for relative path
This commit is contained in:
parent
ee54904274
commit
0345e9d3f6
|
@ -110,7 +110,7 @@ class UrlHelper {
|
|||
$rel_parts['host'] = $base_parts['host'] ?? "";
|
||||
$rel_parts['scheme'] = $base_parts['scheme'] ?? "";
|
||||
|
||||
if ($rel_parts['path'] ?? false) {
|
||||
if (isset($rel_parts['path'])) {
|
||||
|
||||
// we append dirname() of base path to relative URL path as per RFC 3986 section 5.2.2
|
||||
$base_path = with_trailing_slash(dirname($base_parts['path']));
|
||||
|
|
Loading…
Reference in New Issue