Skip to content

Commit 2c8a149

Browse files
committed
fix: make submissions in DMZ bucket unavailable for download
1 parent 46d153a commit 2c8a149

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.indexOf('submissions-quarantine/') === -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)