Subject: Re: [htdig3-dev] Re: robots.txt bug (was [ANNOUNCE] ht://Dig
From: Gilles Detillieux (grdetil@scrc.umanitoba.ca)
Date: Tue Feb 08 2000 - 07:07:49 PST
According to Geoff Hutchison:
> This is bad. The last line should be:
> Pattern: /cat/|/foobar/
>
> In light of a recent bug report (about a new 'allow' keyword in
> robots.txt) the code probably needs to be rewritten. Nevertheless,
> here's the key code:
>
> if (*rest)
> {
> if (pattern.length())
> pattern << '|' << rest;
> else
> pattern = rest;
> }
>
> The only thing I can think of here is that "pattern = rest;" is not
> performing the copying that it should...
Is it a problem that htlib/htString.h defines
void operator = (const char *s);
but not
void operator = (char *s);
given that rest is char * and not const char *? What will (String) = (char *)
default to?
-- Gilles R. Detillieux E-mail: <grdetil@scrc.umanitoba.ca> 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 htdig3-dev-unsubscribe@htdig.org You will receive a message to confirm this.
This archive was generated by hypermail 2b28 : Tue Feb 08 2000 - 07:10:27 PST