According to Christopher Murtagh:
> ht://Dig 3.2.0b5-20040125, two almost identical searches via command line (RedHat 
> Enterprise AS).
> 
>  This one:
> 
> ./htsearch -v -c ../conf/search.conf 
> 'restrict=music;config=search;method=and;sort=score;matchesperpage=8;words=student;page=1;'
> 
> returns resuls
> 
>  This one:
> 
> ./htsearch -v -c ../conf/search.conf 
> 'restrict=/music/;config=search;method=and;sort=score;matchesperpage=8;words=student;page=1;'
> 
> does not.
> 
>  It turns out that any value for restrict that has a '/' in it will
> return no results. I've tried URL encoding, escaping, but nothing works.
> Anyone else experience this problem? Any fixes or work arounds?

Hmm.  This would suggest that the '/' has a special meaning to your
regcomp() function.  How about you try adding a / character to the list
of special characters in the strchr() call on line 81 of htlib/HtRegex.cc
(in HtRegex::setEscaped()), to see if escaping the slash helps.

Is this a quirk unique to RH Enterprise AS, or has it appeared on other
systems too?

-- 
Gilles R. Detillieux              E-mail: <[EMAIL PROTECTED]>
Spinal Cord Research Centre       WWW:    http://www.scrc.umanitoba.ca/
Dept. Physiology, U. of Manitoba  Winnipeg, MB  R3E 3J7  (Canada)


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
ht://Dig Developer mailing list:
[EMAIL PROTECTED]
List information (subscribe/unsubscribe, etc.)
https://lists.sourceforge.net/lists/listinfo/htdig-dev

Reply via email to