* shr.el (shr-expand-url): Handle URL starting with `//'.

This commit is contained in:
Andreas Schwab 2012-07-10 11:42:48 +02:00
parent aa7aaf8f0b
commit 9598ddae26
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2012-07-10 Andreas Schwab <schwab@linux-m68k.org>
* shr.el (shr-expand-url): Handle URL starting with `//'.
2012-06-10 Toke Høiland-Jørgensen <toke@toke.dk> (tiny change)
* nnmaildir.el (nnmaildir-request-expire-articles): Ensure that `time'

View file

@ -445,6 +445,9 @@ the URL of the image to the kill buffer instead."
(string-match "\\`[a-z]*:" url)
(not shr-base))
url)
((and (string-match "\\`//" url)
(string-match "\\`[a-z]*:" shr-base))
(concat (match-string 0 shr-base) url))
((and (not (string-match "/\\'" shr-base))
(not (string-match "\\`/" url)))
(concat shr-base "/" url))