]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix PGP verification buttons (which would have cached results)
authorLars Ingebrigtsen <larsi@gnus.org>
Tue, 21 Sep 2021 15:41:26 +0000 (17:41 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Tue, 21 Sep 2021 15:41:32 +0000 (17:41 +0200)
* lisp/gnus/mm-uu.el (mm-uu-pgp-signed-extract): `format' was used
here to guarantee a new, fresh string (since it's destructively
modified), but that's apparently not the case any more.  Use
`substring' instead, which is documented to do this.

lisp/gnus/mm-uu.el

index 9d4c4bfead7e6bdcf9e7fb12e6a44560d809dcbb..647b97c8662300f91d70a465f6babeae011cf83b 100644 (file)
@@ -511,7 +511,7 @@ apply the face `mm-uu-extract'."
       (list (mm-make-handle buf mm-uu-text-plain-type)))))
 
 (defun mm-uu-pgp-signed-extract ()
-  (let ((mm-security-handle (list (format "multipart/signed"))))
+  (let ((mm-security-handle (list (substring "multipart/signed"))))
     (mm-set-handle-multipart-parameter
      mm-security-handle 'protocol "application/x-gnus-pgp-signature")
     (save-restriction