From ae14599245a452c6576a3c89b4a736dd111c7b7c Mon Sep 17 00:00:00 2001 From: clemkeirua Date: Mon, 24 Feb 2020 10:33:31 +0100 Subject: [PATCH] #4700: export files are antivirus-safe --- app/models/export.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/models/export.rb b/app/models/export.rb index 820b15ee8..a67b835b7 100644 --- a/app/models/export.rb +++ b/app/models/export.rb @@ -25,7 +25,9 @@ class Export < ApplicationRecord file.attach( io: io, filename: filename, - content_type: content_type + content_type: content_type, + # We generate the exports ourselves, so they are safe + metadata: { virus_scan_result: ActiveStorage::VirusScanner::SAFE } ) end