Skip to content
This repository has been archived by the owner on Dec 27, 2023. It is now read-only.

Commit

Permalink
fix(Tinebase/js): strict check file virus status
Browse files Browse the repository at this point in the history
  • Loading branch information
ccheng-dev committed Feb 6, 2023
1 parent 31be909 commit eafa3c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tine20/Tinebase/js/ux/Percentage.js
Expand Up @@ -238,7 +238,7 @@ Ext.ux.PercentRendererWithName = function(value, metadata, record) {
fileName = '<div class="mime-icon-overlay mime-icon-link"></div>' + fileName;
}

if(record.get('is_quarantined')) {
if(record.get('is_quarantined') === '1') {
const warningText = i18n._('This file might potentially harm your computer. Therefore it got quarantined and cannot be edited or downloaded.');
fileName = '<div class="mime-icon-overlay x-tinebase-virus" ext:qtip="'+ Tine.Tinebase.common.doubleEncode(warningText) +'"></div>' + fileName + ' (' + i18n._('quarantined') + ')';
}
Expand Down

0 comments on commit eafa3c8

Please sign in to comment.