Skip to content

A free, self-hostable news aggregator…

Fix: Favicon with protocol-relative URLs have duplicate slashes. (#6068)

Thomas Renes0c023a7b5c4f
diff --git a/lib/favicons.php b/lib/favicons.php
index 48b649c28..8bfa8e001 100644
--- a/lib/favicons.php
+++ b/lib/favicons.php
@@ -92,7 +92,7 @@ function searchFavicon(string &$url): string {
// Handle protocol-relative URLs by adding the current URL's scheme
if (substr($href, 0, 2) === '//') {
- $href = ($urlParts['scheme'] ?? 'https') . '://' . $href;
+ $href = ($urlParts['scheme'] ?? 'https') . ':' . $href;
}
$href = SimplePie_IRI::absolutize($baseUrl, $href);