HTTrack Website Copier
Free software offline browser - FORUM
Subject: Re: Problem with BASE tag
Author: Xavier Roche
Date: 08/14/2002 19:24
 
> I have created an example page:
> <http://www.service.tas.gov.au/leto/base.asp>
> 
> Basically, if a link starts with '/' then HTTrack sees
> that as root level of www.service.tas.gov.au, and not
> root level of the server in the BASE tag.

Ok fixed (problem in htsparse.c, line 1444:

--- htsparse.c.orig     Wed Aug 14 19:23:39 2002
+++ htsparse.c  Wed Aug 14 19:23:27 2002
@@ -1443,3 +1443,3 @@
                       if (!link_has_authority(lien)) 
{    // non absolue
-                        if (*lien!='/') {           // non 
absolu sur le site (/)
+                        //if (*lien!='/') {           // 
non absolu sur le site (/)
                           if ( ((int) strlen(_base)+(int) 
strlen(lien))<HTS_URLMAXSIZE) {
@@ -1450,3 +1450,3 @@
                               strcpy(tempo,_base);
-                              strcat(tempo,lien);
+                            strcat(tempo,lien + 
((*lien=='/')?1:0) );
                               strcpy
(lien,tempo);        // patcher en considérant base
@@ -1465,3 +1465,3 @@
                           }
-                        }
+                        //}
                       }

 
Reply Create subthread


All articles

Subject Author Date
Problem with BASE tag

08/14/2002 07:21
Re: Problem with BASE tag

08/14/2002 19:24




9

Created with FORUM 2.0.11