
From: Gilles Detillieux <grdetil@scrc.umanitoba.ca>
To: htdig@htdig.org
Subject: [htdig] Patch

Fixes problem with $(VAR) at end of template string not being expanded.

--- htdig-3.1.2/htsearch/Display.cc.varstatebug	Fri Jul 30 14:24:05 1999
+++ htdig-3.1.2/htsearch/Display.cc	Fri Jul 30 15:25:09 1999
@@ -822,7 +822,7 @@ Display::expandVariables(char *str)
 	}
 	str++;
     }
-    if (state == 5)
+    if (state == 2 || state == 5)
     {
 	//
 	// The end of string was reached, but we are still trying to

