diff -ru htdig-3.1.3/htcommon/DocumentDB.cc htdig-3.1.3.patched/htcommon/DocumentDB.cc
--- htdig-3.1.3/htcommon/DocumentDB.cc	Thu Apr 22 06:47:57 1999
+++ htdig-3.1.3.patched/htcommon/DocumentDB.cc	Sat Nov 20 20:38:12 1999
@@ -217,7 +217,8 @@
     while ((key = dbf->Get_Next()))
     {
 	dbf->Get(key, data);
-	if (strncmp(HtURLCodec::instance()->decode(key), "http:", 5) == 0)
+	if (strncmp(HtURLCodec::instance()->decode(key), "http:", 5) == 0 ||
+		strncmp(HtURLCodec::instance()->decode(key), "file:", 5) == 0)
 	{
 	    ref = new DocumentRef;
 	    ref->Deserialize(data);
@@ -284,7 +285,8 @@
     while ((coded_key = dbf->Get_Next()))
     {
 	String key = HtURLCodec::instance()->decode(coded_key);
-	if (mystrncasecmp(key, "http:", 5) == 0)
+	if (mystrncasecmp(key, "http:", 5) == 0 ||
+		mystrncasecmp(key, "file:", 5) == 0)
 	{
 	    DocumentRef	*ref = (*this)[key];
 	    if (ref)
