]> git.eshelyaron.com Git - emacs.git/commitdiff
gnus-html.el (gnus-html-prefetch-images): Adjust regexp to avoid regexp backtrace...
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Fri, 1 Oct 2010 13:33:03 +0000 (13:33 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Fri, 1 Oct 2010 13:33:03 +0000 (13:33 +0000)
lisp/gnus/ChangeLog
lisp/gnus/gnus-html.el

index 4737a414545b94cc220258022319cbdf63f614a3..3cc5be14af53036ed3050e04feac295c0b279b11 100644 (file)
@@ -1,5 +1,8 @@
 2010-10-01  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
+       * gnus-html.el (gnus-html-prefetch-images): Adjust regexp to avoid
+       regexp backtrace overflows.
+
        * nnimap.el (nnimap-extend-tls-programs): Only extend those programs
        for starttls that tls.el implements; i.e. openssl.
 
index 587c28e974a84478e320ada34d7b18cee95462f1..fee9eee0f9eb0351d677c31c28cd636a02cc2507 100644 (file)
@@ -500,7 +500,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=[\"']\\([^\"']+\\)" 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)