mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-18 10:57:34 +00:00
* shr.el (shr-expand-url): Handle URL starting with `//'.
This commit is contained in:
parent
aa7aaf8f0b
commit
9598ddae26
2 changed files with 7 additions and 0 deletions
|
|
@ -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'
|
||||
|
|
|
|||
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Reference in a new issue