From 65c972873bd61356defac787bfcdd2cba3323a5e Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Mon, 2 Dec 2013 18:31:40 +0100 Subject: OPML : améliorations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Charge et sauve la description des flux. Redirige vers la page d'accueil après une importation OPML (maintenant rapide, et pour mieux permettre le rafraîchissement des flux avec moins de risques que l'utilisateur quitte la page) Suite de https://github.com/marienfressinaud/FreshRSS/issues/228 --- lib/lib_rss.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'lib/lib_rss.php') diff --git a/lib/lib_rss.php b/lib/lib_rss.php index 3e23f7542..9bce0760b 100644 --- a/lib/lib_rss.php +++ b/lib/lib_rss.php @@ -91,7 +91,7 @@ function opml_export ($cats) { $txt .= '' . "\n"; foreach ($cat['feeds'] as $feed) { - $txt .= "\t" . '' . "\n"; + $txt .= "\t" . '' . "\n"; } $txt .= '' . "\n"; @@ -201,7 +201,10 @@ function getFeed ($outline, $cat_id) { $feed->_category ($cat_id); $feed->_name ($title); if (isset($outline['htmlUrl'])) { - $feed->_website((string)$outline['htmlUrl']); + $feed->_website(htmlspecialchars((string)$outline['htmlUrl'], ENT_QUOTES, 'UTF-8')); + } + if (isset($outline['description'])) { + $feed->_description(htmlspecialchars((string)$outline['description'], ENT_QUOTES, 'UTF-8')); } return $feed; } -- cgit v1.2.3