[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: url-encode-url: do not add a trailing slash for "bare" URLs (with no
From: |
Bastien |
Subject: |
Re: url-encode-url: do not add a trailing slash for "bare" URLs (with no file/directory) |
Date: |
Wed, 12 Mar 2014 15:42:50 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
Hi Stefan,
Stefan Monnier <address@hidden> writes:
>> The following trivial patch changes this.
>
> I'm no expert on URL conventions, but it looks OK to me, tho maybe the /
> is needed when there's a fragment.
Do you mean when there is a #name like in "http://www.gnu.org/#"
or "http://www.gnu.org/index.html#name" ?
The patch does not the current behavior wrt fragments.
(url-encode-url "http://www.gnu.org/#")
=> http://www.gnu.org/
in both cases.
With the patch we have
(url-encode-url "http://www.gnu.org#")
=> http://www.gnu.org
instead of
(url-encode-url "http://www.gnu.org#")
=> http://www.gnu.org/
(no trailing slash with the patch), but I don't think
http://www.gnu.org# is correct anyway.
Let me know,
--
Bastien