From: Lars Magne Ingebrigtsen Date: Tue, 5 Oct 2010 21:21:34 +0000 (+0200) Subject: (gnus-html-schedule-image-fetching): Protect against invalid URLs. X-Git-Url: https://cgit.sxemacs.org/?p=gnus;a=commitdiff_plain;h=7b32cc9928099af8d5a8cad3e747b3c9b9242bcd (gnus-html-schedule-image-fetching): Protect against invalid URLs. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index bdb6076bc..7d119efe3 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,8 @@ 2010-10-05 Lars Magne Ingebrigtsen + * gnus-html.el (gnus-html-schedule-image-fetching): Protect against + invalid URLs. + * shr.el (shr-tag-img): Shorten ALT texts and allow them to be line-broken. (shr-tag-img): Ignore image fetching errors. diff --git a/lisp/gnus-html.el b/lisp/gnus-html.el index 873d4b442..a21c4784d 100644 --- a/lisp/gnus-html.el +++ b/lisp/gnus-html.el @@ -365,7 +365,8 @@ Use ALT-TEXT for the image string." (help-function-arglist 'url-retrieve))) 4) (setq args (nconc args (list t)))) - (apply #'url-retrieve args))) + (ignore-errors + (apply #'url-retrieve args)))) (defun gnus-html-image-fetched (status buffer image) "Callback function called when image has been fetched."