]> git.eshelyaron.com Git - emacs.git/commitdiff
Avoid an infinite loop in mml-expand-html-into-multipart-related
authordick <dick.r.chiang@gmail.com>
Sun, 13 Jun 2021 13:02:11 +0000 (15:02 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 13 Jun 2021 13:02:27 +0000 (15:02 +0200)
* lisp/gnus/mml.el (mml-expand-html-into-multipart-related):
Skip images with empty filename parts (bug#49001).

lisp/gnus/mml.el

index dcc9ea51dd24f705f33dacf6bb4e1cbbd44a3b31..5f35e73cd7c98b4a5b566156dc38ecd27a9d73e3 100644 (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)