From f1c91c84ddee0a9f3ef6d0775f630822c184963f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 25 Oct 2025 11:21:28 +0200 Subject: Bump phpstan/phpstan from 2.1.29 to 2.1.31 (#8156) * Bump phpstan/phpstan from 2.1.29 to 2.1.31 Bumps [phpstan/phpstan](https://github.com/phpstan/phpstan-phar-composer-source) from 2.1.29 to 2.1.31. - [Commits](https://github.com/phpstan/phpstan-phar-composer-source/commits) --- updated-dependencies: - dependency-name: phpstan/phpstan dependency-version: 2.1.31 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] * Fixes --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Alexandre Alapetite --- lib/favicons.php | 4 ++++ lib/lib_rss.php | 1 + 2 files changed, 5 insertions(+) (limited to 'lib') diff --git a/lib/favicons.php b/lib/favicons.php index 3072874d7..786f832fc 100644 --- a/lib/favicons.php +++ b/lib/favicons.php @@ -26,6 +26,10 @@ function faviconCachePath(string $url): string { } function searchFavicon(string $url): string { + $url = trim($url); + if ($url === '') { + return ''; + } $dom = new DOMDocument(); ['body' => $html, 'effective_url' => $effective_url, 'fail' => $fail] = httpGet($url, cachePath: CACHE_PATH . '/' . sha1($url) . '.html', type: 'html'); if ($fail || $html === '' || !@$dom->loadHTML($html, LIBXML_NONET | LIBXML_NOERROR | LIBXML_NOWARNING)) { diff --git a/lib/lib_rss.php b/lib/lib_rss.php index 266e95b65..01c8a0088 100644 --- a/lib/lib_rss.php +++ b/lib/lib_rss.php @@ -570,6 +570,7 @@ function enforceHtmlBase(string $html, string $href): string { } /** + * @param non-empty-string $url * @param string $type {html,ico,json,opml,xml} * @param array $attributes * @param array $curl_options -- cgit v1.2.3