emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r102030: gnus-html.el (gnus-html-pref


From: Katsumi Yamaoka
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r102030: gnus-html.el (gnus-html-prefetch-images): Only prefetch http images to avoid trying to snarf invalid stuff.
Date: Thu, 21 Oct 2010 03:48:01 +0000
User-agent: Bazaar (2.0.3)

------------------------------------------------------------
revno: 102030
author: Lars Magne Ingebrigtsen <address@hidden>
committer: Katsumi Yamaoka <address@hidden>
branch nick: trunk
timestamp: Thu 2010-10-21 03:48:01 +0000
message:
  gnus-html.el (gnus-html-prefetch-images): Only prefetch http images to avoid 
trying to snarf invalid stuff.
modified:
  lisp/gnus/ChangeLog
  lisp/gnus/gnus-html.el
=== modified file 'lisp/gnus/ChangeLog'
--- a/lisp/gnus/ChangeLog       2010-10-21 02:52:45 +0000
+++ b/lisp/gnus/ChangeLog       2010-10-21 03:48:01 +0000
@@ -1,9 +1,10 @@
-2010-10-21  Katsumi Yamaoka  <address@hidden>
-
-       * gnus-sum.el (gnus-summary-edit-article-done): Bind replace-result.
-
 2010-10-21  Lars Magne Ingebrigtsen  <address@hidden>
 
+       * gnus-html.el (gnus-html-prefetch-images): Only prefetch http images
+       to avoid trying to snarf invalid stuff.
+
+       * gnus-sum.el (gnus-summary-edit-article-done): Bind free variable.
+
        * gnus.el (gnus-message-archive-group): Quote value.
        (gnus-message-archive-group): Mark as changed.
 

=== modified file 'lisp/gnus/gnus-html.el'
--- a/lisp/gnus/gnus-html.el    2010-10-20 22:29:38 +0000
+++ b/lisp/gnus/gnus-html.el    2010-10-21 03:48:01 +0000
@@ -493,7 +493,7 @@
     (let ((blocked-images (with-current-buffer summary
                             (gnus-blocked-images))))
       (save-match-data
-       (while (re-search-forward "<img[^>]+src=[\"']\\([^\"']+\\)" nil t)
+       (while (re-search-forward "<img[^>]+src=[\"']\\(http[^\"']+\\)" nil t)
          (let ((url (gnus-html-encode-url (match-string 1))))
            (unless (gnus-html-image-url-blocked-p url blocked-images)
               (when (gnus-html-cache-expired url gnus-html-image-cache-ttl)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]