mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 03:15:56 +00:00
* sql_bool_to_bool: make parameter nullable
* errorhandler: don't try to truncate null strings * UrlHelper::rewrite_relative: fix undefined offset warnings for URLs that lack schema/host (data: etc)
This commit is contained in:
@@ -89,8 +89,8 @@ class UrlHelper {
|
||||
} else {
|
||||
$base_parts = parse_url($base_url);
|
||||
|
||||
$rel_parts['host'] = $base_parts['host'];
|
||||
$rel_parts['scheme'] = $base_parts['scheme'];
|
||||
$rel_parts['host'] = $base_parts['host'] ?? "";
|
||||
$rel_parts['scheme'] = $base_parts['scheme'] ?? "";
|
||||
|
||||
if (isset($rel_parts['path'])) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user