Fix file name sanitization in LibreOffice previewer [SCI-5541]

This commit is contained in:
Oleksii Kriuchykhin 2021-03-04 16:01:30 +01:00
parent a31ba4f369
commit 2286121234

View file

@ -21,7 +21,7 @@ module ActiveStorage
begin
success = system(
"#{libreoffice_path} --headless --invisible --convert-to png --outdir #{work_dir} #{input.path}"
libreoffice_path, '--headless', '--invisible', '--convert-to', 'png', '--outdir', work_dir, input.path
)
unless success && File.file?(preview_file)