Skip to content

Commit 233308d

Browse files
committed
fix: safe for download check
* files in bucket quarantine are not safe for download * file s in DMZ bucket have not been scanned and thus not safe for download
1 parent 2c8a149 commit 233308d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shared/utils/tc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ export function isValidEmail(email) {
311311
* check the review scan score for review type virus scan.
312312
*/
313313
export function safeForDownload(url) {
314-
return url != null && (url.toLowerCase().indexOf('submissions-quarantine/') === -1 || url.toLowerCase().indexOf('submissions-dmz/') === -1);
314+
return url != null && url.toLowerCase().indexOf('submissions-quarantine/') === -1 && url.toLowerCase().indexOf('submissions-dmz/') === -1;
315315
}
316316

317317
export default undefined;

0 commit comments

Comments
 (0)