]> git.eshelyaron.com Git - emacs.git/commitdiff
* shr.el (shr-expand-url): Handle URL starting with `//'.
authorAndreas Schwab <schwab@linux-m68k.org>
Tue, 10 Jul 2012 09:42:48 +0000 (11:42 +0200)
committerAndreas Schwab <schwab@linux-m68k.org>
Tue, 10 Jul 2012 09:42:48 +0000 (11:42 +0200)
lisp/gnus/ChangeLog
lisp/gnus/shr.el

index 9c406f75bf3d9fd6dbbcd6dd80785b0de68f4fc8..4ddf8b04e91f87819456232e20af34519c07ccd6 100644 (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'
index 4211829873407cd5a8e4cc5c9464b4e32be48036..0d9b052f42514a174224f3fb3b17fb561bdbf820 100644 (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))