]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix usage of `format' in mm-uu-pgp-encrypted-extract
authorLars Ingebrigtsen <larsi@gnus.org>
Tue, 21 Sep 2021 15:47:55 +0000 (17:47 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Tue, 21 Sep 2021 15:47:55 +0000 (17:47 +0200)
* lisp/gnus/mm-uu.el (mm-uu-pgp-encrypted-extract): Use
`substring' instead of `format' to ensure a fresh string.

lisp/gnus/mm-uu.el

index 647b97c8662300f91d70a465f6babeae011cf83b..494221adeecccb75bd941e07753b2b84be5ac361 100644 (file)
@@ -579,7 +579,7 @@ apply the face `mm-uu-extract'."
        (list (mm-make-handle buf '("application/pgp-encrypted")))))))
 
 (defun mm-uu-pgp-encrypted-extract ()
-  (let ((mm-security-handle (list (format "multipart/encrypted"))))
+  (let ((mm-security-handle (list (substring "multipart/encrypted"))))
     (mm-set-handle-multipart-parameter
      mm-security-handle 'protocol "application/x-gnus-pgp-encrypted")
     (save-restriction