From: Jean-Sebastien M. <jsm...@mv...> - 2003-11-17 04:15:59
|
Guys, Shouldn't the following change to v3.1.6 work? ---START--- root@dent:/mnt/lan/src/htdig-3.1.6$ diff htsearch/htsearch.cc-orig htsearch/htsearch.cc 220c220 < urllist.Create(config["restrict"], "| \t\r\n\001"); --- > urllist.Create(config["restrict"], "|\t\r\n\001"); ---END--- It seems to have fixed the OR problem, but now I'm not getting any matches. I've added "<!--RESTRICT:$(RESTRICT)-->" to the nomatch.html file, and here is what it gives me: <!--RESTRICT:/photos/021/Netherland Antilles--> So it appears the space made it in there, but I don't understand why htsearch isn't matching the URLs with it. Any ideas? I've tried a whole bunch of things, but nothing has worked so far... BTW, here's a snippet from rundig showing the URLs it should match: 307:307:4:http://www.mvpix.com/photos/011/Netherland%20Antilles/Bonaire/Transportation/Flying/: **-*-*******-*****-********- size = 6914 308:308:4:http://www.mvpix.com/photos/011/Netherland%20Antilles/Bonaire/Transportation/Automobiles/: **-*-*******-*****-********- size = 6934 309:309:4:http://www.mvpix.com/photos/011/Netherland%20Antilles/Bonaire/Objects/Industrial/: **-*-*******-*****-********- size = 6895 310:310:4:http://www.mvpix.com/photos/011/Netherland%20Antilles/Bonaire/Objects/Still%20Life/: **-*-*******-*****-********- size = 6898 Thanks, js. On Sun, Nov 16, 2003 at 05:10:19PM -0500, Jean-Sebastien Morisset wrote: > Hi, > > I'm trying to use a restrict value with spaces - for example: > > restrict=/photos/021/Netherland%20Antilles/Bonaire/ > > Unfortunately, htdig v3.1.6 reads this as "/photos/021/Netherland" OR > "Antilles/Bonaire/" when I would like it to read it as a single string. > Is there a way to have it treat spaces as part of the string? -- Jean-Sebastien Morisset, Sr. UNIX Administrator <jsm...@mv...> Personal Home Page <http://jsmoriss.mvlan.net/> JS & Melanie's Homebrewery <http://brewery.mvlan.net/> Underwater and Travel Photographs <http://www.mvpix.com/> |