
From grdetil@scrc.umanitoba.ca Fri Jul 23 08:40:54 1999
Date: Fri, 23 Jul 1999 09:29:08 -0500 (CDT)
From: Gilles Detillieux <grdetil@scrc.umanitoba.ca>
To: htdig3-dev@htdig.org
Cc: htdig3-dev@htdig.org
Subject: Re: [htdig3-dev] remove_default_doc matching more than it should under 3.1.2


According to S. Hayles:
> remove_default_doc seems to match any file name containing any of the
> given patterns (eg remove_default_doc: index.html will match
> not_the_index.html). Should it not be exact matches only?

Yes, this is a known bug, which is fixed in the 3.2 development source
tree.  Here's the patch:

--- htlib/URL.cc.orig	Wed Apr 21 21:47:58 1999
+++ htlib/URL.cc	Fri Jun 11 12:24:40 1999
@@ -440,7 +440,7 @@ void URL::removeIndex(String &path)
       l.Release();
     }
     if (defaultdoc->hasPattern() &&
-            defaultdoc->FindFirstWord(path.sub(filename)) >= 0)
+            defaultdoc->CompareWord(path.sub(filename)))
 	path.chop(path.length() - filename);
 }
 

-- 
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@htdig.org containing the single word "unsubscribe" in
the SUBJECT of the message.
