wget version 10.1 and 10.2
When downloading a site recursively I got into an infinite loop
downloading the same file over and over again. Each time with another
"/" in it's path name. "http://site/foo/bar.html" ->
"http://site/foo//bar.html" -> "http://site/foo///bar.html"... until the
"-l depth" was reached, infinitely in this case...
I found that the culprit was a link of the form "..//foo/bar.html" which
was not being normalized correctly. The double "/" was not being
removed. Replacing the "//" within the page with a single "/" stops the
problem. But of course I can't do that on someone else's site on the web.
The site I found this on was actually a little more complicated in that
it involved a "back to top" link, not a self-reference, but this is the
simplest example I could think of.
Here's a test case. Simply place this file into a directory called
"test" and download it recursively with wget.
Title: wget fails
self