]> git.eshelyaron.com Git - emacs.git/commitdiff
Quote other suspicious characters in mml-insert-tag.
authorAsher Gordon <AsDaGo@posteo.net>
Mon, 24 Aug 2020 01:37:10 +0000 (03:37 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Mon, 24 Aug 2020 01:37:10 +0000 (03:37 +0200)
* lisp/gnus/mml.el (mml-insert-tag): Ensure that the characters
"[]<>=" are quoted correctly (bug#43009).
Copyright-paperwork-exempt: yes

lisp/gnus/mml.el

index ef8aa6ac019a95251ebbfdeab5328bc055efa001..067396fc2a6008a39593ef552a037fa7ba22855b 100644 (file)
@@ -1360,7 +1360,7 @@ If not set, `default-directory' will be used."
          (value (pop plist)))
       (when value
        ;; Quote VALUE if it contains suspicious characters.
-       (when (string-match "[\"'\\~/*;() \t\n[:multibyte:]]" value)
+       (when (string-match "[][\"'\\~/*;()<>= \t\n[:multibyte:]]" value)
          (setq value (with-output-to-string
                        (let (print-escape-nonascii)
                          (prin1 value)))))