Closed jonathandixon closed 7 years ago
I wonder if this is as simple as quoting #{path}
on this line
execute "#{Hydra::Derivatives.libreoffice_path} --invisible --headless --convert-to #{format} --outdir #{outdir} \"#{path}\""
I'm not sure it this will have unwanted consequences. Should there also be a check to determine if the path is already quoted?
@jonathandixon I wonder if we should run the path through a method like https://ruby-doc.org/stdlib-2.3.0/libdoc/shellwords/rdoc/Shellwords.html#method-c-shellescape
Fixed by #164.
When running
Hydra::Derivatives::DocumentDerivatives
with a file name that includes parenthesissoffice
exits with an error.