diff options
author | John Christopher Anderson <jchris@apache.org> | 2010-01-20 04:10:27 +0000 |
---|---|---|
committer | John Christopher Anderson <jchris@apache.org> | 2010-01-20 04:10:27 +0000 |
commit | 55515caffa246e0739ef90a3a3443a5bd5c2b223 (patch) | |
tree | d03b20e551e6fbfe253a46d5912f3330540f787d /share | |
parent | 08bac9b0be9b90b0b93593be87a8ca82736aa17a (diff) |
properly encode user name in link url
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@901055 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share')
-rw-r--r-- | share/www/script/futon.js | 2 |
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 { |