mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-12 16:23:57 +00:00
Avoid an infinite loop in mml-expand-html-into-multipart-related
* lisp/gnus/mml.el (mml-expand-html-into-multipart-related): Skip images with empty filename parts (bug#49001).
This commit is contained in:
parent
bad87a162c
commit
55d7effbe1
@ -550,7 +550,7 @@ type detected."
|
||||
(end (point))
|
||||
(parsed (url-generic-parse-url (cdr (assq 'src (cadr img))))))
|
||||
(when (and (null (url-type parsed))
|
||||
(url-filename parsed)
|
||||
(not (zerop (length (url-filename parsed))))
|
||||
(file-exists-p (url-filename parsed)))
|
||||
(goto-char start)
|
||||
(when (search-forward (url-filename parsed) end t)
|
||||
|
Loading…
Reference in New Issue
Block a user