You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by kx...@apache.org on 2015/02/27 15:49:05 UTC
[3/4] couchdb-global-changes git commit: Validate callback defined
Validate callback defined
COUCHDB-2585
Project: http://git-wip-us.apache.org/repos/asf/couchdb-global-changes/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-global-changes/commit/cedf542a
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-global-changes/tree/cedf542a
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-global-changes/diff/cedf542a
Branch: refs/heads/master
Commit: cedf542a341bac6a30b33532ca95f49f5ea898c1
Parents: 861fade
Author: ILYA Khlopotov <ii...@ca.ibm.com>
Authored: Tue Feb 24 13:17:54 2015 -0800
Committer: ILYA Khlopotov <ii...@ca.ibm.com>
Committed: Tue Feb 24 13:17:54 2015 -0800
----------------------------------------------------------------------
src/global_changes_httpd.erl | 1 +
1 file changed, 1 insertion(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb-global-changes/blob/cedf542a/src/global_changes_httpd.erl
----------------------------------------------------------------------
diff --git a/src/global_changes_httpd.erl b/src/global_changes_httpd.erl
index 00f87af..35572a8 100644
--- a/src/global_changes_httpd.erl
+++ b/src/global_changes_httpd.erl
@@ -256,5 +256,6 @@ allowed_owner(Req) ->
admin;
SpecStr ->
{ok, {M, F, A}} = couch_util:parse_term(SpecStr),
+ couch_util:validate_callback_exists(M, F, 2),
M:F(Req, A)
end.