summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--share/www/script/futon.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/www/script/futon.js b/share/www/script/futon.js
index 18843eb7..ce7de02e 100644
--- a/share/www/script/futon.js
+++ b/share/www/script/futon.js
@@ -121,7 +121,7 @@
success : function(r) {
var userCtx = r.userCtx;
if (userCtx.name) {
- $("#userCtx .name").text(userCtx.name).attr({href : "/_utils/document.html?"+encodeURIComponent(r.info.authentication_db)+"/org.couchdb.user%3A"+userCtx.name});
+ $("#userCtx .name").text(userCtx.name).attr({href : "/_utils/document.html?"+encodeURIComponent(r.info.authentication_db)+"/org.couchdb.user%3A"+encodeURIComponent(userCtx.name)});
if (userCtx.roles.indexOf("_admin") != -1) {
$("#userCtx .loggedinadmin").show();
} else {