couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jch...@apache.org
Subject svn commit: r901055 - /couchdb/trunk/share/www/script/futon.js
Date Wed, 20 Jan 2010 04:10:27 GMT
Author: jchris
Date: Wed Jan 20 04:10:27 2010
New Revision: 901055

URL: http://svn.apache.org/viewvc?rev=901055&view=rev
Log:
properly encode user name in link url

Modified:
    couchdb/trunk/share/www/script/futon.js

Modified: couchdb/trunk/share/www/script/futon.js
URL: http://svn.apache.org/viewvc/couchdb/trunk/share/www/script/futon.js?rev=901055&r1=901054&r2=901055&view=diff
==============================================================================
--- couchdb/trunk/share/www/script/futon.js (original)
+++ couchdb/trunk/share/www/script/futon.js Wed Jan 20 04:10:27 2010
@@ -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 {



Mime
View raw message