From bbf4692b99b8f92618d58dafb897f7b797a987ab Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sat, 15 Mar 2025 23:07:17 -0400 Subject: [PATCH] Don't log entire byte array when downloading files --- chrome/content/zotero/xpcom/http.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/http.js b/chrome/content/zotero/xpcom/http.js index 5214c06f61..db4f098bc6 100644 --- a/chrome/content/zotero/xpcom/http.js +++ b/chrome/content/zotero/xpcom/http.js @@ -671,8 +671,9 @@ Zotero.HTTP = new function() { ); var bytes = new Uint8Array(await req.response.arrayBuffer()); await IOUtils.write(path, bytes); + var byteLength = bytes.byteLength; - Zotero.debug(`Saved file to ${path} (${bytes} byte${bytes != 1 ? 's' : ''})`); + Zotero.debug(`Saved file to ${path} (${byteLength} byte${byteLength != 1 ? 's' : ''})`); return req; };