org-mode/lisp
Ihor Radchenko 03635a3355
org-latex-preview: Add protection when `untrusted-content' is non-nil
* lisp/org.el (org--latex-preview-when-risky): New variable
controlling how to handle LaTeX previews in Org files from untrusted
origin.
(org-latex-preview): Consult `org--latex-preview-when-risky' before
generating previews.

This patch adds a layer of protection when LaTeX preview is requested
for an email attachment, where `untrusted-content' is set to non-nil.
2024-03-24 17:11:17 +03:00
..
Makefile Move link-related core functions out of "org.el" 2019-03-10 18:00:27 +01:00
ob-C.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ob-R.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ob-awk.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ob-calc.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ob-clojure.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ob-comint.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ob-core.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ob-css.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ob-ditaa.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ob-dot.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ob-emacs-lisp.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ob-eshell.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ob-eval.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ob-exp.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ob-forth.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ob-fortran.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ob-gnuplot.el org-babel-expand-body:gnuplot: Fix altering variable data case 2024-03-07 15:43:00 +03:00
ob-groovy.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ob-haskell.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ob-java.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ob-js.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ob-julia.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ob-latex.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ob-lilypond.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ob-lisp.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ob-lob.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ob-lua.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ob-makefile.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ob-matlab.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ob-maxima.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ob-ocaml.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ob-octave.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ob-org.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ob-perl.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ob-plantuml.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ob-processing.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ob-python.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ob-ref.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ob-ruby.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ob-sass.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ob-scheme.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ob-screen.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ob-sed.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ob-shell.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ob-sql.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ob-sqlite.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ob-table.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ob-tangle.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ob.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
oc-basic.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
oc-biblatex.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
oc-bibtex.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
oc-csl.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
oc-natbib.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
oc.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ol-bbdb.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ol-bibtex.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ol-docview.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ol-doi.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ol-eshell.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ol-eww.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ol-gnus.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ol-info.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ol-irc.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ol-man.el fixup! org-man-open: Fix shell expansion vulnerability (Emacs bug#66390) 2024-01-11 16:34:17 +01:00
ol-mhe.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ol-rmail.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ol-w3m.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ol.el org-link-translation-function: Remove reference to removed function 2024-01-31 14:06:03 +01:00
org-agenda.el org-agenda-clock-cancel: Unmark clocking tasks in the agenda buffer 2024-03-21 15:55:21 +03:00
org-archive.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
org-attach-git.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
org-attach.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
org-capture.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
org-clock.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
org-colview.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
org-compat.el org-publish-sitemap-file-entry-format: Do not refer to non-existing symbol 2024-01-31 14:07:18 +01:00
org-crypt.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
org-ctags.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
org-cycle.el org-cycle: Fix "Overwriting value of ... by aliasing" warning 2024-02-23 16:24:19 +03:00
org-datetree.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
org-duration.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
org-element.el Backport commit 725a3f32f from Emacs 2024-01-20 21:25:59 -05:00
org-entities.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
org-faces.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
org-feed.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
org-fold-core.el org-fold-core-region: Fix removing non-fold overlays 2024-03-16 12:23:08 +03:00
org-fold.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
org-footnote.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
org-goto.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
org-habit.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
org-id.el Merge branch 'km/from-emacs-29' into bugfix 2024-01-06 15:52:07 -05:00
org-indent.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
org-inlinetask.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
org-keys.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
org-lint.el Merge branch 'km/from-emacs-29' into bugfix 2024-01-06 15:52:07 -05:00
org-list.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
org-macro.el org-macro--set-templates: Prevent code evaluation 2024-03-24 17:11:05 +03:00
org-macs.el Fix unescaped \ in docstrings 2024-02-28 10:52:58 +03:00
org-mobile.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
org-mouse.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
org-num.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
org-pcomplete.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
org-persist.el org-persist: Do not demand write access to existing directories 2024-03-21 12:13:13 +03:00
org-plot.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
org-protocol.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
org-refile.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
org-src.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
org-table.el lisp/org-table.el: Fix reference to non-existing function 2024-01-31 14:06:30 +01:00
org-tempo.el lisp/org-tempo.el: Do not refer to removed function in the commentary 2024-01-31 14:05:46 +01:00
org-timer.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
org.el org-latex-preview: Add protection when `untrusted-content' is non-nil 2024-03-24 17:11:17 +03:00
ox-ascii.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ox-beamer.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ox-html.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ox-icalendar.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ox-koma-letter.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ox-latex.el Fix unescaped \ in docstrings 2024-02-28 10:52:58 +03:00
ox-man.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ox-md.el ox-md.el: Fix adding blank lines between table rows in derived exporters 2024-02-18 17:25:27 +01:00
ox-odt.el org-odt-get-table-cell-styles: Fix reference to obsolete text property 2024-01-31 14:06:50 +01:00
ox-org.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ox-publish.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ox-texinfo.el Backport commit 8e1c56ae4 from Emacs 2024-01-06 15:48:23 -05:00
ox.el org-export-dictionary: Improve Estonian translation 2024-03-16 16:02:14 +03:00