| Hello,
I've got problems when an index page has malformed
URLs like this "../page1.html", because httrack
generates "<site>page1.html", missing the
"/" separator.
I think it is a bug in the function htslib.c:fil_simplifie.
Please review the following patch and tell me your opinions
thanks in advance.
--- htslib.c.orig 2005-11-23 11:04:05.351862776 +0100
+++ htslib.c 2005-11-23 11:00:42.941633808 +0100
@@ -2336,7 +2336,10 @@
b = rollback[rollid - 1];
} else {
rollid = 0;
- b = f;
+ if( *f == '/' )
+ b = (f+1);
+ else
+ b = f;
}
} else {
*b++ = lc = *a;
| |