abrom / henkei

Read text and metadata from files and documents (.doc, .docx, .pages, .odt, .rtf, .pdf)
http://github.com/abrom/henkei
MIT License
74 stars 14 forks source link

Fix bug where Java or Jar/config paths were not escaped #19

Closed abrom closed 3 years ago

abrom commented 3 years ago

If the JAVA_HOME path is specified and contained spaces, Henkei would fail to run. The same goes if the Jar or config path (ie gem path) had spaces. This change switches to using parameterised options instead of a single string which resolves the problem by not having to escape in the first place.