]> git.eshelyaron.com Git - emacs.git/commitdiff
gnus-html.el (gnus-html-prefetch-images): Only prefetch http images to avoid trying...
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Thu, 21 Oct 2010 03:48:01 +0000 (03:48 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Thu, 21 Oct 2010 03:48:01 +0000 (03:48 +0000)
lisp/gnus/ChangeLog
lisp/gnus/gnus-html.el

index f8082923a515a101cffcc0dfda2ecbf89040e439..1c3708e9526b7fbe9882f22f438d124bf30e6250 100644 (file)
@@ -1,8 +1,9 @@
-2010-10-21  Katsumi Yamaoka  <yamaoka@jpl.org>
+2010-10-21  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
-       * gnus-sum.el (gnus-summary-edit-article-done): Bind replace-result.
+       * gnus-html.el (gnus-html-prefetch-images): Only prefetch http images
+       to avoid trying to snarf invalid stuff.
 
-2010-10-21  Lars Magne Ingebrigtsen  <larsi@gnus.org>
+       * 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.
index 861ad73d08915e31b8321d42a63febefa87d85c9..77f771dc85081a70d642333a1ade193f9aaa84c7 100644 (file)
@@ -493,7 +493,7 @@ This only works if the article in question is HTML."
     (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)