Re: htdig: htsearch doesn't accept dots '.' in conf file name

heddy Boubaker (
25 May 1998 16:50:55 +0200

 <> "Neil" == Neil Cutcliffe <> writes:

Neil> I noticed htsearch doesn't accept a conf file name (via the 'config'
Neil> form field) if the file name has any dots ('.') in it? Does anyone
Neil> know the reason for this restriction?

 Yes this is a bug ... in design (IMHO), htsearch try to be smarter than
 needed ;-) or think we're completely dumb and we didn't read the doc ;-) so
 it try to interpret some input you give him, in that case it interpret
 the value of the config file like that: "if there is already a dot in config
 file name that should mean the user have not read the doc and already put the
 extension .conf in that name, so I'll not add it myself".
 You really CAN'T have dots in config files names unless you patch the code
 or add .conf at the end of the name unlike what is written in the doc. And
 here is a small patch, just change the line 108 of the htsearch/
 file from that:
  if (input.exists("config") && !strchr(input["config"], '.'))

 to that:

  if (input.exists("config"))
 But after that don't add .conf at the end anymore ...
 That's all folks


- heddy - ---------------------------------------------------------------------- To unsubscribe from the htdig mailing list, send a message to 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:26:18 PST