Commit 0a887f39 authored by Lars Magne Ingebrigtsen's avatar Lars Magne Ingebrigtsen Committed by Katsumi Yamaoka
Browse files

gnus-html.el (gnus-html-prefetch-images): Adjust regexp to avoid regexp backtrace overflows.

parent 0781e7ab
2010-10-01 Lars Magne Ingebrigtsen <larsi@gnus.org> 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 * nnimap.el (nnimap-extend-tls-programs): Only extend those programs
for starttls that tls.el implements; i.e. openssl. for starttls that tls.el implements; i.e. openssl.
   
......
...@@ -500,7 +500,7 @@ This only works if the article in question is HTML." ...@@ -500,7 +500,7 @@ This only works if the article in question is HTML."
(let ((blocked-images (with-current-buffer summary (let ((blocked-images (with-current-buffer summary
gnus-blocked-images))) gnus-blocked-images)))
(save-match-data (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)))) (let ((url (gnus-html-encode-url (match-string 1))))
(unless (gnus-html-image-url-blocked-p url blocked-images) (unless (gnus-html-image-url-blocked-p url blocked-images)
(when (gnus-html-cache-expired url gnus-html-image-cache-ttl) (when (gnus-html-cache-expired url gnus-html-image-cache-ttl)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment