Permalink
Browse files

missing validate

  • Loading branch information...
1 parent 91bedce commit 18bf2baa2ea60e0ad90590f2f5e7f9f175143e1f @benoitc benoitc committed Dec 8, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 apps/couch_mrview/src/couch_mrview_show.erl
@@ -144,6 +144,7 @@ send_doc_update_response(Req, Db, DDoc, UpdateName, Doc, DocId) ->
Options = [{user_ctx, Req#httpd.user_ctx}]
end,
NewDoc = couch_doc:from_json_obj({NewJsonDoc}),
+ couch_doc:validate_docid(NewDoc#doc.id),
{ok, NewRev} = couch_db:update_doc(Db, NewDoc, Options),
NewRevStr = couch_doc:rev_to_str(NewRev),
{[

0 comments on commit 18bf2ba

Please sign in to comment.