Fauxton: encode uri component for config url Fixes the "/" in httpd_global_handlers in the config dashboard
Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/f8d535c0 Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/f8d535c0 Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/f8d535c0 Branch: refs/heads/1.6.x Commit: f8d535c0aeff405aef6cbcf1e507c79c8548dce2 Parents: 2abdb2c Author: Robert Kowalski <[email protected]> Authored: Tue May 20 22:10:59 2014 +0200 Committer: Robert Kowalski <[email protected]> Committed: Wed May 21 19:52:20 2014 +0200 ---------------------------------------------------------------------- src/fauxton/app/addons/config/resources.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb/blob/f8d535c0/src/fauxton/app/addons/config/resources.js ---------------------------------------------------------------------- diff --git a/src/fauxton/app/addons/config/resources.js b/src/fauxton/app/addons/config/resources.js index 317e355..bbd0d2a 100644 --- a/src/fauxton/app/addons/config/resources.js +++ b/src/fauxton/app/addons/config/resources.js @@ -26,7 +26,7 @@ function (app, FauxtonAPI) { documentation: "config", url: function () { - return app.host + '/_config/' + this.get("section") + '/' + this.get("name"); + return app.host + '/_config/' + this.get("section") + '/' + encodeURIComponent(this.get("name")); }, isNew: function () { return false; }, @@ -77,7 +77,7 @@ function (app, FauxtonAPI) { } }); - + return Config; });
