]> git.wh0rd.org - tt-rss.git/commitdiff
vf_catchup_link: use onclick, instead of href
authorAndrew Dolgov <fox@bah.spb.su>
Sat, 17 May 2008 09:22:08 +0000 (10:22 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Sat, 17 May 2008 09:22:08 +0000 (10:22 +0100)
functions.php

index d01c31d562faac8bbb870edd71773570afc532d5..f8d806715c2b40a2ff3c4266ec9bc7d2518961d6 100644 (file)
                                                        $cur_feed_title = $line["feed_title"];
                                                        $vgroup_last_feed = $feed_id;
 
+                                                       $cur_feed_title = htmlspecialchars($cur_feed_title);
 
-                                                       $vf_catchup_link = "(<a href='javascript:catchupFeedInGroup($feed_id, \"$cur_feed_title\")'>mark as read</a>)";
+                                                       $vf_catchup_link = "(<a onclick='javascript:catchupFeedInGroup($feed_id, \"$cur_feed_title\");' href='#'>mark as read</a>)";
 
                                                        print "<tr class='feedTitle'><td colspan='7'>".
                                                                "<a href=\"javascript:viewfeed($feed_id, '', false)\">".
                                                        $cur_feed_title = $line["feed_title"];
                                                        $vgroup_last_feed = $feed_id;
 
-                                                       $vf_catchup_link = "(<a href='javascript:catchupFeedInGroup($feed_id, \"$cur_feed_title\")'>mark as read</a>)";
+                                                       $cur_feed_title = htmlspecialchars($cur_feed_title);
+
+                                                       $vf_catchup_link = "(<a onclick='javascript:catchupFeedInGroup($feed_id, \"$cur_feed_title\");' href='#'>mark as read</a>)";
 
                                                        print "<div class='cdmFeedTitle'>".
                                                                "<a href=\"javascript:viewfeed($feed_id, '', false)\">".