[aur-dev] [PATCH 1/3] JSON-RPC: include maintainer info in results.

2010-11-05 Thread Christopher Brannon
This patch implements the feature requested in FS#17597. The name of the maintainer is now included in the results of the search and info queries. --- web/lib/aurjson.class.php |8 ++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/web/lib/aurjson.class.php

[aur-dev] [PATCH 2/3] JSON-RPC: slightly refactor to reduce duplication.

2010-11-05 Thread Christopher Brannon
The SELECT statements in aurjson.class.php share much in common. This patch moves the common bit to a constant. --- web/lib/aurjson.class.php | 35 +++ 1 files changed, 19 insertions(+), 16 deletions(-) diff --git a/web/lib/aurjson.class.php

[aur-dev] [PATCH 3/3] JSON-RPC: convert null and in info queries.

2010-11-05 Thread Christopher Brannon
When processing a query of type=info, the code in aurjson.class.php was not gracefully coping with attributes which have a value of null or the empty string. For example, if the URL field of an object was , the JSON-encoded result would contain: {URLPath:[PKGBUILD error: non-UTF8 character]} This