]> git.eshelyaron.com Git - emacs.git/commit
Ignore non-base64 junk when decoding MIME
authorAndreas Schwab <schwab@linux-m68k.org>
Tue, 25 Oct 2022 16:22:21 +0000 (18:22 +0200)
committerAndreas Schwab <schwab@linux-m68k.org>
Tue, 25 Oct 2022 19:47:18 +0000 (21:47 +0200)
commit33647b6d63fe3062361a23a901664a379c07097f
tree8a6afc5a2c2b4d2d19f8bc98342b2f6c1382bc24
parente5cb66c046be440ca63fb384ea93f450aa4f958e
Ignore non-base64 junk when decoding MIME

* src/fns.c (Fbase64_decode_region): Add optional argument
IGNORE-INVALID and pass down to base64_decode_1.
(Fbase64_decode_string): Likewise.
(base64_decode_1): Add argument IGNORE_INVALID.
* doc/lispref/text.texi (Base 64): Document them.
* lisp/gnus/mm-bodies.el (mm-decode-content-transfer-encoding):
Ignore any junk when decoding base64.
doc/lispref/text.texi
lisp/gnus/mm-bodies.el
src/fns.c