summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
Diffstat (limited to 'share')
-rw-r--r--share/www/script/futon.browse.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/share/www/script/futon.browse.js b/share/www/script/futon.browse.js
index db899df3..cff08c8c 100644
--- a/share/www/script/futon.browse.js
+++ b/share/www/script/futon.browse.js
@@ -103,7 +103,8 @@
viewName = $.cookies.get(dbName + ".view", "");
if (viewName) {
this.redirecting = true;
- location.href = "database.html?" + dbName + "/" + viewName;
+ location.href = "database.html?" + encodeURIComponent(dbName) +
+ "/" + encodeDocId(viewName);
}
}
var db = $.couch.db(dbName);
@@ -969,7 +970,7 @@
if (parts[0] == '_design') {
parts.shift();
encoded = encodeURIComponent(parts.join('/'));
- return '_design/'+encoded;
+ return '_design/' + encoded;
} else {
return encodeURIComponent(docid);
}