";
if ($line['note']) {
print format_article_note($id, $line['note']);
}
print "
";
+ print "";
+
+ $article_content = sanitize_rss($link, $line["content"], false, false,
+ $feed_site_url);
+
print $article_content;
print_article_enclosures($link, $id, $always_display_enclosures,
@@ -5234,12 +5234,12 @@
alt='Zoom'
title='".__('Open article in new tab')."'>";
- $note_escaped = htmlspecialchars($line['note'], ENT_QUOTES);
+ //$note_escaped = htmlspecialchars($line['note'], ENT_QUOTES);
print "";
+ onclick=\"editArticleNote($id)\"
+ alt='PubNote' title='".__('Edit article note')."'>";
if (DIGEST_ENABLE) {
print "";
- $str .= $note;
- $str .= "
";
+ $str = "";
- $str .= "".
- __('edit note')."";
- $str .= "
";
- $str .= "$note
";
return $str;
}
diff --git a/modules/backend-rpc.php b/modules/backend-rpc.php
index b8877da20..239ff60f6 100644
--- a/modules/backend-rpc.php
+++ b/modules/backend-rpc.php
@@ -209,8 +209,9 @@
return;
}
- // XML method
if ($subop == "publ") {
+ header("Content-Type: text/plain");
+
$pub = $_REQUEST["pub"];
$id = db_escape_string($_REQUEST["id"]);
$note = trim(strip_tags(db_escape_string($_REQUEST["note"])));
@@ -221,31 +222,11 @@
$pub = "false";
}
- if ($note != 'undefined') {
- $note_qpart = "note = '$note',";
- }
-
- // FIXME this needs collision testing
-
$result = db_query($link, "UPDATE ttrss_user_entries SET
- $note_qpart
published = $pub
WHERE ref_id = '$id' AND owner_uid = " . $_SESSION["uid"]);
-
- print "