mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-10 09:23:58 +08:00
Fix file name sanitization in LibreOffice previewer [SCI-5541]
This commit is contained in:
parent
a31ba4f369
commit
2286121234
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue