couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kxe...@apache.org
Subject [03/15] fauxton commit: updated refs/heads/import-master to 8cb432c
Date Sat, 07 Jun 2014 21:04:27 GMT
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-fauxton/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/commit/8c62d4d6
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/tree/8c62d4d6
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/diff/8c62d4d6

Branch: refs/heads/import-master
Commit: 8c62d4d605a391452f56b15be4c6b722acfb4e16
Parents: 37e449a
Author: Robert Kowalski <rok@kowalski.gd>
Authored: Tue May 20 22:10:59 2014 +0200
Committer: Robert Kowalski <rok@kowalski.gd>
Committed: Wed May 21 19:52:20 2014 +0200

----------------------------------------------------------------------
 app/addons/config/resources.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/8c62d4d6/app/addons/config/resources.js
----------------------------------------------------------------------
diff --git a/app/addons/config/resources.js b/app/addons/config/resources.js
index 317e355..bbd0d2a 100644
--- a/app/addons/config/resources.js
+++ b/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;
 });


Mime
View raw message