1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-29 14:01:28 +00:00

rewrite_relative: whitelist specific schemes for URLs with 'known' content-types i.e. specified for enclosures

This commit is contained in:
Andrew Dolgov
2022-02-17 22:38:38 +03:00
parent 89ef98e57e
commit 74a247fc5c
2 changed files with 17 additions and 2 deletions

View File

@@ -736,7 +736,7 @@ class RSSUtils {
// TODO: Just use FeedEnclosure (and modify it to cover whatever justified this)?
$e_item = array(
UrlHelper::rewrite_relative($site_url, $e->link),
UrlHelper::rewrite_relative($site_url, $e->link, "", "", $e->type),
$e->type, $e->length, $e->title, $e->width, $e->height);
// Yet another episode of "mysql utf8_general_ci is gimped"