summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2011-04-19 13:20:59 +0400
committerAndrew Dolgov <[email protected]>2011-04-19 13:20:59 +0400
commitfcfa9ef15b641f818f3473d2b60d1c1328aef564 (patch)
tree5101af40b87900916967350c2a46e37ab763dcc9 /modules
parentdd04ea81bab44837796911945db448974582c1bf (diff)
rework article notes; re-add built-in XSL template for generated feeds; remove schema_version caching in session
Diffstat (limited to 'modules')
-rw-r--r--modules/backend-rpc.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/backend-rpc.php b/modules/backend-rpc.php
index 0630d8821..1adfb23b1 100644
--- a/modules/backend-rpc.php
+++ b/modules/backend-rpc.php
@@ -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;
}