aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2022-04-19 13:42:17 +0200
committerLars Ingebrigtsen2022-04-19 13:42:25 +0200
commit843dc435f797e6804663ae074d3d88993c4cd8a4 (patch)
tree1dfb75be2cb443f81e5d10c9cba7cfcc8d24350e
parent5df658a96a4bc7f8f96e3b2bf58dad32f81ce06a (diff)
downloademacs-843dc435f797e6804663ae074d3d88993c4cd8a4.tar.gz
emacs-843dc435f797e6804663ae074d3d88993c4cd8a4.zip
Be more resilient against invalid headers in mml-generate-mime
* lisp/gnus/mml.el (mml-generate-mime): Don't bug out when called with invalid headers (bug#55014).
-rw-r--r--lisp/gnus/mml.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/gnus/mml.el b/lisp/gnus/mml.el
index 5a526025061..093e582ea7a 100644
--- a/lisp/gnus/mml.el
+++ b/lisp/gnus/mml.el
@@ -500,7 +500,8 @@ type detected."
500 (when (and (consp (car cont)) 500 (when (and (consp (car cont))
501 (= (length cont) 1) 501 (= (length cont) 1)
502 content-type) 502 content-type)
503 (setcdr (assq 'type (cdr (car cont))) content-type)) 503 (when-let ((spec (assq 'type (cdr (car cont)))))
504 (setcdr spec content-type)))
504 (when (fboundp 'libxml-parse-html-region) 505 (when (fboundp 'libxml-parse-html-region)
505 (setq cont (mapcar #'mml-expand-all-html-into-multipart-related cont))) 506 (setq cont (mapcar #'mml-expand-all-html-into-multipart-related cont)))
506 (prog1 507 (prog1