1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-26 07:11:34 -08:00
emacs/lisp/textmodes
Eli Zaretskii a103dbe360 Disable execution of unsafe Lisp by Enriched Text mode
* src/xdisp.c (handle_display_spec): If the display property is
wrapped in 'disable-eval' form, disable Lisp evaluation while
processing this property.
(handle_single_display_spec): Accept new argument ENABLE_EVAL_P.
If that argument is false, don't evaluate Lisp while processing
display properties.

* lisp/textmodes/enriched.el
(enriched-allow-eval-in-display-props): New defcustom.
(enriched-decode-display-prop): If
enriched-allow-eval-in-display-props is nil, wrap the display
property with 'disable-eval' to disable Lisp evaluation when the
display property is processed for display.  (Bug#28350)
* lisp/gnus/mm-view.el (mm-inline-text): Re-enable processing of
enriched text.

* doc/lispref/display.texi (Display Property): Document the
'disable-eval' wrapping of 'display' properties.
* doc/emacs/text.texi (Enriched Properties): Document
'enriched-allow-eval-in-display-props'.

* etc/NEWS: Describe the security issues with Enriched Text mode
and their solution.
2017-09-16 12:45:24 +03:00
..
artist.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
bib-mode.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
bibtex-style.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
bibtex.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
conf-mode.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
css-mode.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
dns-mode.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
enriched.el Disable execution of unsafe Lisp by Enriched Text mode 2017-09-16 12:45:24 +03:00
fill.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
flyspell.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
ispell.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
less-css-mode.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
makeinfo.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
mhtml-mode.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
nroff-mode.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
page-ext.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
page.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
paragraphs.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
picture.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
po.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
refbib.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
refer.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
refill.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
reftex-auc.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
reftex-cite.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
reftex-dcr.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
reftex-global.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
reftex-index.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
reftex-parse.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
reftex-ref.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
reftex-sel.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
reftex-toc.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
reftex-vars.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
reftex.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
remember.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
rst.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
sgml-mode.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
table.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
tex-mode.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
texinfmt.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
texinfo.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
texnfo-upd.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
text-mode.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
tildify.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
two-column.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
underline.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00