According to Gabriele Bartolini:
> Here is a little patch for htsearch. In fact to check the value of
> matchesperpage I had to insert a javascript inside my form. Else, if user
> would have inserted a non int value (or non positive value), htsearch would
> have crashed.
> 
> With this minimal control, we check for a valid positive value of it.
> 
> This is my propose: any Idea?

Yes, on 0 or non-int (which atoi treats as 0), htsearch gets a divide by
zero error.  Negatives don't cause a crash, but don't give any output
either.  I'll add your patch to 3.1.2, but I'll also patch Display.cc,
in case the error is in htdig.conf's matches_per_page attribute.

Good call!  Thanks.

> Ciao a tutti
> e Buona Pasqua
> 
> (Ciao to all of you and have a happy Easter)

Joyeuses P�ques!

-- 
Gilles R. Detillieux              E-mail: <[EMAIL PROTECTED]>
Spinal Cord Research Centre       WWW:    http://www.scrc.umanitoba.ca/~grdetil
Dept. Physiology, U. of Manitoba  Phone:  (204)789-3766
Winnipeg, MB  R3E 3J7  (Canada)   Fax:    (204)789-3930
------------------------------------
To unsubscribe from the htdig3-dev mailing list, send a message to
[EMAIL PROTECTED] containing the single word "unsubscribe" in
the SUBJECT of the message.

Reply via email to