HTTrack Website Copier
Free software offline browser - FORUM
Subject: patch for malformed relative links (v3.33.16)
Author: JuanF Rodriguez
Date: 11/23/2005 11:34
 
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;
 
Reply


All articles

Subject Author Date
patch for malformed relative links (v3.33.16)

11/23/2005 11:34
Re: patch for malformed relative links (v3.33.16)

11/23/2005 12:04
Re: patch for malformed relative links (v3.33.16)

11/23/2005 12:16
Re: patch for malformed relative links (v3.33.16)

11/27/2005 11:16




e

Created with FORUM 2.0.11