mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-31 12:09:17 +08:00
Merge pull request #3201 from okriuchykhin/ok_SCI_5541
Fix file name sanitization in LibreOffice previewer [SCI-5541]
This commit is contained in:
commit
393204453b
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ module ActiveStorage
|
||||||
|
|
||||||
begin
|
begin
|
||||||
success = system(
|
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)
|
unless success && File.file?(preview_file)
|
||||||
|
|
Loading…
Reference in a new issue