Subject: Re: [htdig3-dev] [PATCH] (bugfix) htsearch, new CGI params: nohead, startat, stopat
From: Peter Stieglecker (pst@ican.at)
Date: Tue Jan 16 2001 - 10:52:43 PST
Hi List,
I am very sorry, but the patch I posted a few days ago had a bug that caused a
SIGSEGV when more results than available were wanted. I did not see the bug
earlier, because the problem occurs only after showing all the results and my
templates were arranged so that I never saw a difference. I am reposting the
patch (hopefully bugfree) now against htdig-3.2.0b3-010701:
Regards,
Peter
Original posting:
Peter Stieglecker wrote:
> I would like to suggest a few additional CGI parameters to htsearch:
>
> * nohead: If set to 'true' will immediately start the output of results
> without any HTTP headers.
>
> * startat, stopat: If they are set to integer values, they will override
> paging (if they are not set, the behaviour is unchanged). Output will
> start at the requested item (starting at 1) and continue up to stopat.
> If only one of the parameters is set, the other one will default to
> 1 for startat, total number of matches for stop at. FIRSTDISPLAYED and
> LASTDISPLAYED are set accordingly. If both are unset, the behaviour is
> the same as before.
>
> The reason for doing this is I am currently writing a small wrapper for
> htsearch, to make live easier with our template system. We would like to use
> our own paging mechanism. The patch is downward compatible, coming to life
> only when startat and/or stopat are actually used.
-- ________________________________________________________________________ ICAN Internet Services GmbH - www.ican.at www.loq12.at Peter Stieglecker Loquaiplatz 12/1, A-1060 Vienna pstieglecker@ican.at Tel: +43(1) 595 41 24/15 Fax: +43(1) 595 41 24/99 ICQ: 45696226
------------------------------------ To unsubscribe from the htdig3-dev mailing list, send a message to htdig3-dev-unsubscribe@htdig.org You will receive a message to confirm this.
This archive was generated by hypermail 2b28 : Tue Jan 16 2001 - 11:07:30 PST