From 2e58d4e5271721fe4c5d9329f5dbfa2ac6dbe93b Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 29 Nov 2009 11:16:32 +0300 Subject: [PATCH 1/4] xml-rpc: force UTF-8 (closes #259) --- xml-rpc.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xml-rpc.php b/xml-rpc.php index 624367fdf..26a49ebd1 100644 --- a/xml-rpc.php +++ b/xml-rpc.php @@ -9,6 +9,8 @@ require_once "db-prefs.php"; require_once "functions.php"; + $GLOBALS['xmlrpc_internalencoding'] = "UTF-8"; + $link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME); if (!$link) { From e36f43d211f1a8d2e172d9a0efed99f210b998c9 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 29 Nov 2009 11:17:22 +0300 Subject: [PATCH 2/4] xml-rpc: getCategories() - return unread article count (closes #260) --- xml-rpc.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xml-rpc.php b/xml-rpc.php index 26a49ebd1..4ad846784 100644 --- a/xml-rpc.php +++ b/xml-rpc.php @@ -93,12 +93,13 @@ while ($line = db_fetch_assoc($result)) { - $unread = getFeedUnread($link, $line["id"]); + $unread = getFeedUnread($link, $line["id"], true); $line_struct = new xmlrpcval( array( "title" => new xmlrpcval($line["title"]), - "id" => new xmlrpcval($line["id"], "int") + "id" => new xmlrpcval($line["id"], "int"), + "unread" => new xmlrpcval($unread, "int") ), "struct"); From 4f7bca9bbb28a3553aa863b11adf8c67011ba20e Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 11 Dec 2009 12:37:02 +0300 Subject: [PATCH 3/4] mobile: help mobile browsers auto-fill user names --- mobile/login_form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mobile/login_form.php b/mobile/login_form.php index dd5b4acdc..4e414b5a0 100644 --- a/mobile/login_form.php +++ b/mobile/login_form.php @@ -56,7 +56,7 @@ window.onload = init; - + From 24ecbcae503da6a104ad38bf2b618c3f6024be64 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 15 Dec 2009 13:36:53 +0300 Subject: [PATCH 4/4] outputArticleXML: display tags in zoom mode --- functions.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/functions.php b/functions.php index 9d32e98f3..7980b68d8 100644 --- a/functions.php +++ b/functions.php @@ -4709,6 +4709,9 @@ onclick=\"publishWithNote($id, '$note_escaped')\" alt='PubNote' title='".__('Publish article with a note')."'>"; + } else { + $tags_str = strip_tags($tags_str); + print "$tags_str"; } print ""; print "
$entry_comments
";