active_pdftk icon indicating copy to clipboard operation
active_pdftk copied to clipboard

Special characters in file paths not being escaped

Open SirRawlins opened this issue 10 years ago • 3 comments

Hello Guys,

Got caught out this afternoon by a file which was called 'example (1).pdf' whereby the path is not escaped before sending to bash and therefore throws a syntax error.

I'm proposing that all commands are sanitised/escaped before being sent to bash to prevent this from happening in future.

If other people are happy this is the way to go I'll wrap up a pull-request with the fixes.

Robert

SirRawlins avatar Aug 07 '14 13:08 SirRawlins

It would be great if you could wrap up a PR for this.

Also, have you run the specs locally yet? I'm having a bit of an issue, its weird, they pass for me locally, however, I can't get them to run clean on travis. No idea whats up. Kind of why I haven't actually released this to rubygems yet.

Thanks, ~ Tom

tcocca avatar Aug 10 '14 21:08 tcocca

@tcocca I'd be more than happy to work on a PR for this. I haven't tried running specs locally yet but will do so before I start work on the PR.

SirRawlins avatar Aug 12 '14 08:08 SirRawlins

@tcocca I'm looking at putting this PR together this afternoon but Im having issues getting the specs to run - currently about 300 failing, most of the them in the wrapper_spec - Do I need to do anything specific to get these passing? Seems to be a mixture of different reasons for failure.

SirRawlins avatar Sep 03 '14 12:09 SirRawlins