]> git.wh0rd.org Git - tt-rss.git/commitdiff
feed browser: fix feeds with ampersand signs in feed url not being displayed properly
authorAndrew Dolgov <fox@bah.org.ru>
Thu, 1 Jul 2010 07:47:39 +0000 (11:47 +0400)
committerAndrew Dolgov <fox@bah.org.ru>
Thu, 1 Jul 2010 07:47:39 +0000 (11:47 +0400)
modules/pref-feeds.php

index 090b18a7a46edd7a8f7acc4f4b1b8ffcc7867ff6..78a8409bf7b9a10a3eea7b4cb03bedfe1b45b212 100644 (file)
 
                                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");
        
        
                                        $class = ($feedctr % 2) ? "even" : "odd";
        
+                                       $feed_url = htmlspecialchars($line["feed_url"]);
+
                                        if ($details["site_url"]) {
                                                $site_url = "<a target=\"_blank\" href=\"".
                                                        htmlspecialchars($details["site_url"])."\">