fixed another virustotal check failure

This commit is contained in:
antelle 2020-12-30 12:52:48 +01:00
parent 18775e3cea
commit abf5531fc5
No known key found for this signature in database
GPG Key ID: 63C9777AAB7C563C
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}