mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
no virus scan check for travis
This commit is contained in:
parent
cc64a57172
commit
d4ed6a30c2
1 changed files with 3 additions and 0 deletions
|
@ -270,6 +270,9 @@ class Site < Sequel::Model
|
|||
return false unless (Site::VALID_MIME_TYPES.include?(mime_type) || mime_type =~ /text/) &&
|
||||
Site::VALID_EXTENSIONS.include?(File.extname(uploaded_file[:filename]).sub(/^./, '').downcase)
|
||||
|
||||
# clamdscan doesn't work on travis for testing
|
||||
return true if ENV['TRAVIS'] == 'true'
|
||||
|
||||
File.chmod 0640, uploaded_file[:tempfile].path
|
||||
line = Cocaine::CommandLine.new(
|
||||
"clamdscan", "-i --remove=no --no-summary --stdout :path",
|
||||
|
|
Loading…
Add table
Reference in a new issue