Commit 9598ddae authored by Andreas Schwab's avatar Andreas Schwab
Browse files

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

parent aa7aaf8f
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))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment