couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From benk...@apache.org
Subject fauxton commit: updated refs/heads/master to 6302c82
Date Fri, 14 Nov 2014 18:15:52 GMT
Repository: couchdb-fauxton
Updated Branches:
  refs/heads/master 6d93fe479 -> 6302c821c


Typeahead component needs to urlencode query params

This doesn't fix a current issue. It's just added in anticipation of it becoming
a problem down the road. Query params in the Components.DbSearchTypeahead component
should be url escaped.

Closes COUCHDB-2456


Project: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/commit/6302c821
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/tree/6302c821
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/diff/6302c821

Branch: refs/heads/master
Commit: 6302c821c8adc3643121d048cb611c7bc118e2d1
Parents: 6d93fe4
Author: Benjamin Keen <ben.keen@gmail.com>
Authored: Wed Nov 12 12:04:08 2014 -0800
Committer: Benjamin Keen <ben.keen@gmail.com>
Committed: Fri Nov 14 10:15:28 2014 -0800

----------------------------------------------------------------------
 app/addons/fauxton/components.js | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/6302c821/app/addons/fauxton/components.js
----------------------------------------------------------------------
diff --git a/app/addons/fauxton/components.js b/app/addons/fauxton/components.js
index 4e2c00b..1f4e8a0 100644
--- a/app/addons/fauxton/components.js
+++ b/app/addons/fauxton/components.js
@@ -564,6 +564,7 @@ function(app, FauxtonAPI, ace, spin, ZeroClipboard) {
       _.bindAll(this);
     },
     source: function(query, process) {
+      query = encodeURIComponent(query);
       var url = [
         app.host,
         "/_all_dbs?startkey=%22",


Mime
View raw message