From 55515caffa246e0739ef90a3a3443a5bd5c2b223 Mon Sep 17 00:00:00 2001 From: John Christopher Anderson Date: Wed, 20 Jan 2010 04:10:27 +0000 Subject: properly encode user name in link url git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@901055 13f79535-47bb-0310-9956-ffa450edef68 --- share/www/script/futon.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'share/www/script') 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 { -- cgit v1.2.3