From: Gilles Detillieux To: htdig@htdig.org Subject: [htdig] Patch This should fix PR#493, to avoid rejecting a valid URL with ".." in it. --- htdig-3.1.2.bak/htdig/Retriever.cc Wed Apr 21 21:47:57 1999 +++ htdig-3.1.2/htdig/Retriever.cc Wed Aug 4 15:51:44 1999 @@ -625,7 +625,7 @@ Retriever::IsValidURL(char *u) // Currently, we only deal with HTTP URLs. Gopher and ftp will // come later... ***FIX*** // - if (strstr(u, "..") || strncmp(u, "http://", 7) != 0) + if (strstr(u, "/../") || strncmp(u, "http://", 7) != 0) { if (debug > 2) cout << endl <<" Rejected: Not an http or relative link!";