parent
cfee7ea9d2
commit
8e0e86e59c
1 changed files with 1 additions and 0 deletions
|
@ -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=********');
|
||||
|
||||
|
|
Loading…
Reference in a new issue