mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 17:24:23 +00:00
gnus-html.el (gnus-html-prefetch-images): Adjust regexp to avoid regexp backtrace overflows.
This commit is contained in:
parent
0781e7abcf
commit
0a887f3950
2 changed files with 4 additions and 1 deletions
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue