Don't display session id in debug output
This commit is contained in:
parent
7cb0492ccb
commit
44c2783c76
1 changed files with 2 additions and 1 deletions
|
@ -795,8 +795,9 @@ Zotero.Utilities.HTTP = new function() {
|
|||
*/
|
||||
this.doPost = function(url, body, onDone, requestContentType, responseCharset) {
|
||||
var bodyStart = body.substr(0, 1024);
|
||||
// Don't display sync password in console
|
||||
// Don't display sync password or session id in console
|
||||
bodyStart = bodyStart.replace(/password=[^&]+/, 'password=********');
|
||||
bodyStart = bodyStart.replace(/sessionid=[^&]+/, 'sessionid=********');
|
||||
|
||||
Zotero.debug("HTTP POST "
|
||||
+ (body.length > 1024 ?
|
||||
|
|
Loading…
Reference in a new issue