From 2211a391fa85f7360fe0a6d9011dbaaa8e161dc1 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 1 Jul 2010 11:47:39 +0400 Subject: [PATCH] feed browser: fix feeds with ampersand signs in feed url not being displayed properly --- modules/pref-feeds.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/pref-feeds.php b/modules/pref-feeds.php index 090b18a7a..78a8409bf 100644 --- a/modules/pref-feeds.php +++ b/modules/pref-feeds.php @@ -1556,9 +1556,9 @@ if ($mode == 1) { - $feed_url = htmlspecialchars($line["feed_url"]); + $feed_url = $line["feed_url"]; $subscribers = $line["subscribers"]; - + $det_result = db_query($link, "SELECT site_url,title,id FROM ttrss_feeds WHERE feed_url = '$feed_url' LIMIT 1"); @@ -1579,6 +1579,8 @@ $class = ($feedctr % 2) ? "even" : "odd"; + $feed_url = htmlspecialchars($line["feed_url"]); + if ($details["site_url"]) { $site_url = "