wohali commented on a change in pull request #862: Whitelist system DB names as 
valid _dbs docids
URL: https://github.com/apache/couchdb/pull/862#discussion_r142697156
 
 

 ##########
 File path: src/chttpd/src/chttpd_db.erl
 ##########
 @@ -711,7 +711,8 @@ db_doc_req(#httpd{method='GET', mochi_req=MochiReq}=Req, 
Db, DocId) ->
 
 db_doc_req(#httpd{method='POST', user_ctx=Ctx}=Req, Db, DocId) ->
     couch_httpd:validate_referer(Req),
-    couch_doc:validate_docid(DocId),
+    DbName = couch_db:name(Db),
+    couch_doc:validate_docid(DocId, DbName),
 
 Review comment:
   What @nickva said. We also still have couch_doc:validate_docid/1 so I'd 
rather the new parameter be the second parameter.
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to