Does this mean that with 2.4.4, paths with spaces and multiple command line
parameters are not an option?
Here's what I'm using now, with swish-e 2.4.3:
FileFilter .pdf "pdftohtml" " -i -q -stdout \"%p\""
(I quote "pdftohtml" here only because I'm generating the .config
programmatically based on system configuration data and didn't want to take
chances that there might be a space in the path, but I could loose that
particular quoting. The quotes on the parameter line is more important.
It looks like you would want us to write a Perl wrapper for pdftohtml. Is
that the practice you're going toward? (I'm not familiar with
swish_filter.pl except for seeing it mentioned on this list.) Seems like
more overhead, and more installation of stuff, particularly on Windows
machines where you mightn't otherwise be using Perl. That can be an issue in
shared hosting environments. I suppose maybe a .bat /shell script could
supply the missing parameters without as much overhead as Perl.
FileFilter .pdf pdftohtml -i -q -stdout %p
do the same thing in 2.4.4 as the above line did in swish-e 2.4.3?
> -----Original Message-----
> From: firstname.lastname@example.org
> [mailto:email@example.com] On Behalf Of Bill Moseley
> Sent: Wednesday, October 18, 2006 12:07 AM
> To: Multiple recipients of list
> Subject: [SWISH-E] Re: SWISH-E 2.4.4 filters can not locate files
> On Tue, Oct 17, 2006 at 01:09:25AM -0700, Ludovic Drolez wrote:
> > I've made a few tests. Your problem comes from the fact
> that you use "'%p'"
> > on your filefilter line. Now you should simply use %p :
> > Filefilter .pdf swish_filter.pl %p
> This could end up breaking a lot of old configurations that have been
> using quotes in the FileFilter directive.
> Again, I think the correct way to do this is to fork/exec so there's
> no quote/shell char issue at all -- but that also breaks old configs
> that used quotes as the docs show. I suppose we can break old
> configurations in the name of security.
> Would need to tokenize the string and then perhaps automatically
> remove quotes.
> Bill Moseley
> Unsubscribe from or help with the swish-e list:
> Help with Swish-e:
Received on Wed Oct 18 08:02:05 2006