From 8c8140e74ee351dafb3d673839a2b3633e1522a5 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 2 Jan 2020 03:53:37 -0500 Subject: [PATCH] Fix hiding of password in WebDAV error messages and debug output --- chrome/content/zotero/xpcom/http.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/chrome/content/zotero/xpcom/http.js b/chrome/content/zotero/xpcom/http.js index 42f5a1f37d..1766b034d4 100644 --- a/chrome/content/zotero/xpcom/http.js +++ b/chrome/content/zotero/xpcom/http.js @@ -956,11 +956,7 @@ Zotero.HTTP = new function() { this.getDisplayURI = function (uri) { - var disp = uri.clone(); - if (disp.password) { - disp.password = "********"; - } - return disp; + return uri.mutate().setPassword('********').finalize(); }