1
0
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:
dick 2021-06-13 15:02:11 +02:00 committed by Lars Ingebrigtsen
parent bad87a162c
commit 55d7effbe1

View File

@ -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)