Re: Two trailing / on ftp symlink

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: Daniel Gustafsson <daniel(at)yesql(dot)se>
Cc: PostgreSQL WWW <pgsql-www(at)postgresql(dot)org>
Subject: Re: Two trailing / on ftp symlink
Date: 2017-05-02 08:45:10
Message-ID: CABUevExK_v69N7HCrMbGqHWRqQyqZeLTr1ttQmRHswQQeGuxEw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-www

On Tue, May 2, 2017 at 9:12 AM, Daniel Gustafsson <daniel(at)yesql(dot)se> wrote:

> > On 01 May 2017, at 13:26, Daniel Gustafsson <daniel(at)yesql(dot)se> wrote:
> >
> > The “latest” symlink on ftp/ contains a trailing slash in the pickle
> file (I
> > presume, without having seen it), but the template tacks on a trailing
> slash as
> > well making the href "ftp/source/v9.6.2//". While this leads to the
> right page,
> > the “parent directory” link gets confused since it now links to the same
> page as
> > "ftp/source/v9.6.2/“.
>
> After having been pointed in the right direction out-of-band, it seems the
> issue is that we don’t strip trailing slashes from symlinks, only directory
> entries. The attached patch seems to fix it.
>

Slightly modified version applied, thanks.

--
Magnus Hagander
Me: https://www.hagander.net/ <http://www.hagander.net/>
Work: https://www.redpill-linpro.com/ <http://www.redpill-linpro.com/>

In response to

Browse pgsql-www by date

  From Date Subject
Next Message Dave Page 2017-05-02 10:39:26 Re: Updating Admin Cookbook to 9.5/9.6 ediiton
Previous Message Umair Shahid 2017-05-02 08:06:43 Re: Updating Admin Cookbook to 9.5/9.6 ediiton