SECURITY: Don't use backticks for exporting your archive

This commit is contained in:
Robin Ward 2017-03-16 16:24:59 -04:00
parent 0f6a2b912a
commit c14d98354b

View File

@ -48,8 +48,7 @@ module Jobs
end end
# compress CSV file # compress CSV file
`gzip -5 #{absolute_path}` system('gzip', '-5', absolute_path)
ensure ensure
notify_user(file_name, absolute_path) notify_user(file_name, absolute_path)
end end