diff --git a/classes/feeds.php b/classes/feeds.php
index 3a1ac2f5b..7f4c1d6c0 100644
--- a/classes/feeds.php
+++ b/classes/feeds.php
@@ -533,9 +533,6 @@ class Feeds extends Handler_Protected {
$reply['content'] .= "";
- $reply['content'] .= "
" .
- htmlspecialchars(strip_tags($line['title'])) . "
";
-
$reply['content'] .= "
diff --git a/classes/rpc.php b/classes/rpc.php
index 6f9064079..ee5a9e68a 100644
--- a/classes/rpc.php
+++ b/classes/rpc.php
@@ -829,16 +829,17 @@ class RPC extends Handler_Protected {
}
}
- function getlinkbyid() {
+ function getlinktitlebyid() {
$id = db_escape_string($this->link, $_REQUEST['id']);
- $result = db_query($this->link, "SELECT link FROM ttrss_entries, ttrss_user_entries
+ $result = db_query($this->link, "SELECT link, title FROM ttrss_entries, ttrss_user_entries
WHERE ref_id = '$id' AND ref_id = id AND owner_uid = ". $_SESSION["uid"]);
if (db_num_rows($result) != 0) {
$link = db_fetch_result($result, 0, "link");
+ $title = db_fetch_result($result, 0, "title");
- echo json_encode(array("link" => $link));
+ echo json_encode(array("link" => $link, "title" => $title));
} else {
echo json_encode(array("error" => "ARTICLE_NOT_FOUND"));
}
diff --git a/include/functions.php b/include/functions.php
index 7d4ce2918..238ba0121 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -2989,11 +2989,6 @@
";
}
- $title_escaped = htmlspecialchars($line['title']);
-
- $rv['content'] .= "" .
- strip_tags($line['title']) . "
";
-
$rv['content'] .= "";
$rv['content'] .= "