Re: problem with ftp URL at beta15

From: Marc Huber <huber@dont-contact.us>
Date: Mon, 10 Jun 1996 14:35:34 +0200

Frank Bonnet <bonnetf@bart.esiee.fr> wrote:
> if you connect at ftp://foo.bar.com
> then point to the "pub" directory it is
> incorrectly translated to ftp://pub/

The patch below fixed this for me. Alas, the
diff is against beta-14, so take care ;-)

Regards,
          Marc.

squid-1.0.beta14/src> diff -c ftpget.c.orig ftpget.c
*** ftpget.c.orig Mon Jun 10 14:24:01 1996
--- ftpget.c Mon Jun 10 14:25:32 1996
***************
*** 1932,1937 ****
--- 1932,1938 ----
      fprintf(wfp, "<!-- HTML listing generated by Squid %s -->\n",
        SQUID_VERSION);
      fprintf(wfp, "<!-- %s -->\n", http_time(stamp));
+ fprintf(wfp, "<base href=\"%s\"\n>", r->title_url);
      fprintf(wfp, "<TITLE>\n");
      fprintf(wfp, "FTP Directory: %s\n", r->title_url);
      fprintf(wfp, "</TITLE>\n");
Received on Mon Jun 10 1996 - 05:40:20 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:32:29 MST