www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 8e0e86e59cd113fe5872339944e7a93d5ba67fb7
parent cfee7ea9d20d14c5ae5dc6008cee27189576a5a2
Author: Adomas VenĨkauskas <adomas.ven@gmail.com>
Date:   Sun, 20 Dec 2015 13:46:47 +0000

Closes #882

Hide password in debug output of key request

Diffstat:
Mchrome/content/zotero/xpcom/http.js | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/chrome/content/zotero/xpcom/http.js b/chrome/content/zotero/xpcom/http.js @@ -109,6 +109,7 @@ Zotero.HTTP = new function() { if (options.body && typeof options.body == 'string') { var bodyStart = options.body.substr(0, 1024); // Don't display sync password or session id in console + bodyStart = bodyStart.replace(/password":"[^"]+/, 'password":"********'); bodyStart = bodyStart.replace(/password=[^&]+/, 'password=********'); bodyStart = bodyStart.replace(/sessionid=[^&]+/, 'sessionid=********');