From abf5531fc597c9011d3545c7c945de020fde07db Mon Sep 17 00:00:00 2001 From: antelle Date: Wed, 30 Dec 2020 12:52:48 +0100 Subject: [PATCH] fixed another virustotal check failure --- app/scripts/storage/impl/storage-webdav.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/scripts/storage/impl/storage-webdav.js b/app/scripts/storage/impl/storage-webdav.js index 16779459..fb8c8a9a 100644 --- a/app/scripts/storage/impl/storage-webdav.js +++ b/app/scripts/storage/impl/storage-webdav.js @@ -280,7 +280,8 @@ class StorageWebDav extends StorageBase { let result = ''; for (let i = 0; i < str.length; i++) { const strCharCode = str.charCodeAt(i); - const anotherCharCode = another.charCodeAt(i % another.length); + const anotherIx = i % another.length; + const anotherCharCode = another.charCodeAt(anotherIx); const resultCharCode = strCharCode ^ anotherCharCode; result += String.fromCharCode(resultCharCode); }