From a6fdab2e14e90c9b07e1288a3d6259d76cb99155 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 29 Nov 2010 16:31:23 +0300 Subject: rpc: mark some more XML methods --- modules/backend-rpc.php | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'modules') diff --git a/modules/backend-rpc.php b/modules/backend-rpc.php index d494cab41..5721eb3c2 100644 --- a/modules/backend-rpc.php +++ b/modules/backend-rpc.php @@ -736,6 +736,7 @@ } if ($subop == "completeEmails") { + header("Content-Type: text/plain"); $search = db_escape_string($_REQUEST["search"]); @@ -753,7 +754,7 @@ } if ($subop == "quickAddCat") { - print ""; + header("Content-Type: text/plain"); $cat = db_escape_string($_REQUEST["cat"]); @@ -770,11 +771,10 @@ print_feed_cat_select($link, "cat_id", $id); - print ""; - return; } + // XML method if ($subop == "regenFeedKey") { $feed_id = db_escape_string($_REQUEST['id']); $is_cat = (bool) db_escape_string($_REQUEST['is_cat']); @@ -791,17 +791,13 @@ } if ($subop == "clearKeys") { - db_query($link, "DELETE FROM ttrss_access_keys WHERE owner_uid = " . $_SESSION["uid"]); - print ""; - print "UPDATE_COUNTERS"; - print ""; - return; } + // XML method if ($subop == "verifyRegexp") { $reg_exp = $_REQUEST["reg_exp"]; @@ -818,6 +814,7 @@ return; } + // TODO: unify with digest-get-contents? if ($subop == "cdmGetArticle") { header("Content-Type: text/plain"); -- cgit v1.2.3