Only prefetch http images to avoid trying to snarf invalid stuff.
authorLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Thu, 21 Oct 2010 02:53:49 +0000 (04:53 +0200)
committerLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Thu, 21 Oct 2010 02:53:49 +0000 (04:53 +0200)
lisp/ChangeLog
lisp/gnus-html.el

index 076d7e8..1987652 100644 (file)
@@ -1,5 +1,8 @@
 2010-10-21  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
+       * 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.
index 861ad73..77f771d 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)