diff options
| author | Ihor Radchenko | 2024-02-02 20:59:41 +0100 |
|---|---|---|
| committer | Eli Zaretskii | 2024-02-17 19:31:28 +0200 |
| commit | e56f0ef51bfdd0e03e817670754bc813fb3702a2 (patch) | |
| tree | 6e5d7cc12fc5506b72169ccaf64dacc81c6c60d8 | |
| parent | 65ba3274652a4dac37f41f872330e391cd511ae1 (diff) | |
| download | emacs-e56f0ef51bfdd0e03e817670754bc813fb3702a2.tar.gz emacs-e56f0ef51bfdd0e03e817670754bc813fb3702a2.zip | |
org: Fix security prompt for downloading remote resource
* lisp/org.el (org--confirm-resource-safe): Do not assume that
resource is safe when user replies "n" (do not download).
Reported-by: Max Nikulin <manikulin@gmail.com>
Link: https://orgmode.org/list/upj6uk$b7o$1@ciao.gmane.io
| -rw-r--r-- | lisp/org/org.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org/org.el b/lisp/org/org.el index 3075729d01d..c75afbf5a67 100644 --- a/lisp/org/org.el +++ b/lisp/org/org.el | |||
| @@ -4685,7 +4685,7 @@ returns non-nil if any of them match." | |||
| 4685 | (if (and (= char ?f) current-file) | 4685 | (if (and (= char ?f) current-file) |
| 4686 | (concat "file://" current-file) uri)) | 4686 | (concat "file://" current-file) uri)) |
| 4687 | "\\'"))))) | 4687 | "\\'"))))) |
| 4688 | (prog1 (memq char '(?y ?n ?! ?d ?\s ?f)) | 4688 | (prog1 (memq char '(?y ?! ?d ?\s ?f)) |
| 4689 | (quit-window t))))))) | 4689 | (quit-window t))))))) |
| 4690 | 4690 | ||
| 4691 | (defun org-extract-log-state-settings (x) | 4691 | (defun org-extract-log-state-settings (x) |