1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-16 00:25:56 +00:00

rework article notes; re-add built-in XSL template for generated feeds; remove schema_version caching in session

This commit is contained in:
Andrew Dolgov
2011-04-19 13:20:59 +04:00
parent dd04ea81ba
commit fcfa9ef15b
7 changed files with 49 additions and 83 deletions

View File

@@ -818,14 +818,15 @@
if ($subop == "setNote") {
$id = db_escape_string($_REQUEST["id"]);
$note = strip_tags(db_escape_string($_REQUEST["note"]));
$note = trim(strip_tags(db_escape_string($_REQUEST["note"])));
db_query($link, "UPDATE ttrss_user_entries SET note = '$note'
WHERE ref_id = '$id' AND owner_uid = " . $_SESSION["uid"]);
$formatted_note = format_article_note($id, $note);
print json_encode(array("note" => $formatted_note));
print json_encode(array("note" => $formatted_note,
"raw_length" => mb_strlen($note)));
return;
}