Skip to content

A free, self-hostable news aggregator…

Strip feed URL credentials from anonymous query.php output (#9246)

SamCyber00114bf5f8c9601
diff --git a/app/Models/Entry.php b/app/Models/Entry.php
index 4ce58255b..9bedf8b2e 100644
--- a/app/Models/Entry.php
+++ b/app/Models/Entry.php
@@ -1273,7 +1273,7 @@ class FreshRSS_Entry extends Minz_Model {
if ($mode === 'compat') {
$item['origin']['title'] = escapeToUnicodeAlternative($feed->name(), true);
} elseif ($mode === 'freshrss') {
- $item['origin']['feedUrl'] = htmlspecialchars_decode($feed->url());
+ $item['origin']['feedUrl'] = htmlspecialchars_decode($feed->url(includeCredentials: false));
}
if ($feed->priority() >= FreshRSS_Feed::PRIORITY_MAIN_STREAM) {
$item['categories'][] = 'user/-/state/org.freshrss/main';