GNU bug report logs - #17958
SHR: base handling broken (shr-parse-base, shr-expand-url)

Previous Next

Package: emacs;

Reported by: Ivan Shmakov <ivan <at> siamics.net>

Date: Sun, 6 Jul 2014 18:47:01 UTC

Severity: normal

Tags: fixed, patch

Fixed in version 25.1

Done: Lars Magne Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #18 received at 17958 <at> debbugs.gnu.org (full text, mbox):

From: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
To: Ivan Shmakov <ivan <at> siamics.net>
Cc: 17958 <at> debbugs.gnu.org, control <at> debbugs.gnu.org
Subject: Re: bug#17958: SHR: base handling broken (shr-parse-base,
 shr-expand-url)
Date: Thu, 13 Nov 2014 19:41:57 +0100
Ivan Shmakov <ivan <at> siamics.net> writes:

> (let ((shr-base (shr-parse-base "http://example.org/")))
>   (shr-tag-base '((:href . "/relative")))
>   shr-base)
> ;; ⇒
> ("" "/" nil "/relative")
>
> 	With the patch MIMEd (which also fixes the issue described in my
> 	initial bug report), it instead gives what I deem to be the
> 	correct result:
>
> (let ((shr-base (shr-parse-base "http://example.org/")))
>   (shr-tag-base '((:href . "/relative")))
>   shr-base)
> ;; ⇒
> ("http://example.org" "/" "http" "http://example.org/relative")

Thanks; applied.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 10 years and 250 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.