[gnus git] branch master updated: m0-5-60-g354ff86 =1= shr.el (shr-expand-url): Handle URL starting with `//'
Katsumi Yamaoka <[email protected]>
| Newsgroups | gmane.emacs.gnus.cvs |
|---|---|
| Message-ID | <[email protected]> |
via 354ff8649e99deb4fb43c0aad37d8f99bf07ed5a (commit)
from a48095b48939d21de15ccef9c9352ab92a3ae999 (commit)
- Log -----------------------------------------------------------------
commit 354ff8649e99deb4fb43c0aad37d8f99bf07ed5a
Author: Andreas Schwab <[email protected]>
Date: Tue Jul 17 22:09:55 2012 +0000
shr.el (shr-expand-url): Handle URL starting with `//'
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 4e73750..eb9aaed 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
+2012-07-17 Andreas Schwab <[email protected]>
+
+ * shr.el (shr-expand-url): Handle URL starting with `//'.
+
2012-07-13 Chong Yidong <[email protected]>
* smime.el (smime-certificate-info): Set buffer-read-only directly,
diff --git a/lisp/shr.el b/lisp/shr.el
index bf6e57e..e7a6c5d 100644
--- a/lisp/shr.el
+++ b/lisp/shr.el
@@ -484,6 +484,9 @@ size, and full-buffer size."
(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))
-----------------------------------------------------------------------
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we listed those
revisions in full, above.
Summary of changes:
lisp/ChangeLog | 4 ++++
lisp/shr.el | 3 +++
2 files changed, 7 insertions(+), 0 deletions(-)
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnus Project".
The branch, master has been updated
hooks/post-receive
--
Gnus Project