mirror of https://tt-rss.org/git/tt-rss.git
UrlHelper::rewrite_relative: don't try to feed NULL to with_trailing_slash()
This commit is contained in:
parent
dff479af64
commit
326850845d
|
@ -51,7 +51,7 @@ class UrlHelper {
|
||||||
// (i'm not sure if it's a good idea)
|
// (i'm not sure if it's a good idea)
|
||||||
|
|
||||||
if (strpos($rel_parts['path'], '/') !== 0) {
|
if (strpos($rel_parts['path'], '/') !== 0) {
|
||||||
$rel_parts['path'] = with_trailing_slash($base_parts['path']) . $rel_parts['path'];
|
$rel_parts['path'] = with_trailing_slash($base_parts['path'] ?? "") . $rel_parts['path'];
|
||||||
}
|
}
|
||||||
|
|
||||||
$rel_parts['path'] = str_replace("/./", "/", $rel_parts['path']);
|
$rel_parts['path'] = str_replace("/./", "/", $rel_parts['path']);
|
||||||
|
|
Loading…
Reference in New Issue