1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-24 14:30:43 -08:00
emacs/doc
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
..
emacs Disable execution of unsafe Lisp by Enriched Text mode 2017-09-16 12:45:24 +03:00
lispintro Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
lispref Disable execution of unsafe Lisp by Enriched Text mode 2017-09-16 12:45:24 +03:00
man Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
misc Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00