diff options
author | Andrew Dolgov <[email protected]> | 2022-03-22 16:18:22 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2022-03-22 16:18:22 +0300 |
commit | 0345e9d3f61e4f2e761cbcf68d5edb2bec1c163f (patch) | |
tree | 0255a3a94f38c5fdc0240817daabf644541601ac | |
parent | ee549042743532ee711f3e137683709b98ffa4ba (diff) |
rewrite_relative: use isset() to check for relative path
-rw-r--r-- | classes/urlhelper.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/urlhelper.php b/classes/urlhelper.php index 57046b600..8cd69abe4 100644 --- a/classes/urlhelper.php +++ b/classes/urlhelper.php @@ -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'])); |