summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2008-05-21 08:48:21 +0100
committerAndrew Dolgov <[email protected]>2008-05-21 08:48:21 +0100
commitf0971fc1d07736bd2d41ec6349432b89fe4e22a4 (patch)
tree368a2188526f695ad0d2e107862922eec0b073c9 /functions.php
parentb8c21eff1ed37eaba1bedafd4cb03ceecc027bee (diff)
use real link to article in headlines list (for middle click)
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php12
1 files changed, 8 insertions, 4 deletions
diff --git a/functions.php b/functions.php
index 087ba8a4e..7c74fec35 100644
--- a/functions.php
+++ b/functions.php
@@ -4899,8 +4899,10 @@
# $content_link = "<a target=\"_new\" href=\"".$line["link"]."\">" .
# $line["title"] . "</a>";
- $content_link = "<a href=\"javascript:view($id,$feed_id);\">" .
- $line["title"] . "</a>";
+# $content_link = "<a
+# href=\"" . htmlspecialchars($line["link"]) . "\"
+# onclick=\"view($id,$feed_id);\">" .
+# $line["title"] . "</a>";
# $content_link = "<a href=\"javascript:viewContentUrl('".$line["link"]."');\">" .
# $line["title"] . "</a>";
@@ -4980,9 +4982,11 @@
# truncate_string($line["feed_title"],30)."</a>&nbsp;</td>";
# } else {
- print "<td onclick='javascript:view($id,$feed_id)' class='hlContent$hlc_suffix' valign='middle'>";
+ print "<td onclick='view($id,$feed_id)' class='hlContent$hlc_suffix' valign='middle'>";
- print "<a id=\"RTITLE-$id\" href=\"javascript:view($id,$feed_id);\">" .
+ print "<a id=\"RTITLE-$id\"
+ href=\"" . htmlspecialchars($line["link"]) . "\"
+ onclick=\"view($id,$feed_id);\">" .
$line["title"];
if (get_pref($link, 'SHOW_CONTENT_PREVIEW')) {