commit 44c2783c767cfe88c3336d52ba935240485102b9
parent 7cb0492ccb8c9e93baf95ca6c078d3b6eb9c3b77
Author: Dan Stillman <dstillman@zotero.org>
Date: Thu, 18 Sep 2008 09:32:36 +0000
Don't display session id in debug output
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/chrome/content/zotero/xpcom/utilities.js b/chrome/content/zotero/xpcom/utilities.js
@@ -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 ?