Re: htdig: htsearch exclude bug


J. op den Brouw (MSQL_User@st.hhs.nl)
Wed, 16 Sep 1998 14:59:15 +0200 (MET DST)


Should it not be:

             excludeFrom->FindFirst(url) >= 0)

??

On Tue, 15 Sep 1998, Alexander Bergolth wrote:

> Hi!
>
> I think there is an error in Display.cc of htsearch:
>
> Display.cc Line 184:
> ----------
> if (excludeFrom &&
> excludeFrom->hasPattern() &&
> excludeFrom->FindFirst(url) < 0)
> return 0;
> else
> return 1;
> ----------
> should look like this:
> ----------
> if (excludeFrom &&
> excludeFrom->hasPattern() &&
> excludeFrom->FindFirst(url) > 0)
> return 0;
> else
> return 1;
> ----------
> (otherwise only those pages, that _match_ the exclude Patterns are
> displayed)
>
> Bye,
> Leo
>
> -----------------------------------------------------------------------
> Alexander (Leo) Bergolth leo@leo.wu-wien.ac.at
> WU-Wien - Zentrum fuer Informatikdienste http://leo.wu-wien.ac.at
> Info Center
> In a world without walls and fences, who needs windows and gates?
>
> ----------------------------------------------------------------------
> To unsubscribe from the htdig mailing list, send a message to
> htdig-request@sdsu.edu containing the single word "unsubscribe" in
> the body of the message.
>

--jesse
---------------------------------------------------------------------
J. op den Brouw Johanna Westerdijkplein 75
Haagse Hogeschool 2521 EN DEN HAAG
Sector Techniek Netherlands
Afdeling Elektrotechniek +31 70 4458936
-------------------------- msql@st.hhs.nl ---------------------------

htdig survey: http://crytonII.st.hhs.nl/htdig/survey.html

----------------------------------------------------------------------
To unsubscribe from the htdig mailing list, send a message to
htdig-request@sdsu.edu containing the single word "unsubscribe" in
the body of the message.



This archive was generated by hypermail 2.0b3 on Sat Jan 02 1999 - 16:27:48 PST