Skip to content

Commit

Permalink
testing if this works fine
Browse files Browse the repository at this point in the history
  • Loading branch information
Snafkin547 committed May 24, 2024
1 parent 3b2259f commit 05e04c2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/client/protocols/arrays/share.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,13 +202,17 @@ class ShareArray {
);
};

sanitize(input) {
return input.replace(/[^a-zA-Z0-9:_-]/g, '');
}

share_array_single_sender = (jiff, secrets, threshold, receivers_list, sender, Zp, share_id) => {
if (secrets != null && secrets.length === 0) {
return Promise.resolve([]);
} else if (secrets != null && Array.isArray(secrets)) {
const promised_array = [];
for (let j = 0; j < secrets.length; j++) {
share_id = String(share_id)
share_id = sanitize(share_id);

Check failure on line 215 in lib/client/protocols/arrays/share.js

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

lib/client/protocols/arrays/share.js#L215

'sanitize' is not defined.
promised_array.push(this.share_array_single_sender(jiff, secrets[j], threshold, receivers_list, sender, Zp, share_id + ':' + j));

Check warning on line 216 in lib/client/protocols/arrays/share.js

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

lib/client/protocols/arrays/share.js#L216

Function Call Object Injection Sink
}

Expand Down

0 comments on commit 05e04c2

Please sign in to comment.