You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 5, 2018. It is now read-only.
I suggest to wrap it with encodeURIComponent(doc_name).
This is relevant, for example, when the document ids contain slashes.
This may even be a security issue if the user has a limited access to a service that calls updates, and he tells the service to update a document with id that begin with "../../" (I'm not sure if this will actually work and make the service call other DB functions).
The text was updated successfully, but these errors were encountered:
See:
https://github.com/dscape/nano/blob/master/nano.js#L841
I suggest to wrap it with
encodeURIComponent(doc_name)
.This is relevant, for example, when the document ids contain slashes.
This may even be a security issue if the user has a limited access to a service that calls updates, and he tells the service to update a document with id that begin with "../../" (I'm not sure if this will actually work and make the service call other DB functions).
The text was updated successfully, but these errors were encountered: