add minor clean()-ing on some rss feed values
This commit is contained in:
parent
2bd51c48d8
commit
949bfa3457
|
@ -263,8 +263,8 @@ class RSSUtils {
|
||||||
|
|
||||||
if (!$rss->error()) {
|
if (!$rss->error()) {
|
||||||
$basic_info = array(
|
$basic_info = array(
|
||||||
'title' => mb_substr($rss->get_title(), 0, 199),
|
'title' => mb_substr(clean($rss->get_title()), 0, 199),
|
||||||
'site_url' => mb_substr(rewrite_relative_url($fetch_url, $rss->get_link()), 0, 245)
|
'site_url' => mb_substr(rewrite_relative_url($fetch_url, clean($rss->get_link())), 0, 245)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -499,10 +499,10 @@ class RSSUtils {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
$site_url = mb_substr(rewrite_relative_url($fetch_url, $rss->get_link()), 0, 245);
|
$site_url = mb_substr(rewrite_relative_url($fetch_url, clean($rss->get_link())), 0, 245);
|
||||||
|
|
||||||
Debug::log("site_url: $site_url", Debug::$LOG_VERBOSE);
|
Debug::log("site_url: $site_url", Debug::$LOG_VERBOSE);
|
||||||
Debug::log("feed_title: " . $rss->get_title(), Debug::$LOG_VERBOSE);
|
Debug::log("feed_title: " . clean($rss->get_title()), Debug::$LOG_VERBOSE);
|
||||||
|
|
||||||
if ($favicon_needs_check || $force_refetch) {
|
if ($favicon_needs_check || $force_refetch) {
|
||||||
|
|
||||||
|
@ -609,7 +609,7 @@ class RSSUtils {
|
||||||
|
|
||||||
$entry_title = strip_tags($item->get_title());
|
$entry_title = strip_tags($item->get_title());
|
||||||
|
|
||||||
$entry_link = rewrite_relative_url($site_url, $item->get_link());
|
$entry_link = rewrite_relative_url($site_url, clean($item->get_link()));
|
||||||
|
|
||||||
$entry_language = mb_substr(trim($item->get_language()), 0, 2);
|
$entry_language = mb_substr(trim($item->get_language()), 0, 2);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue