org: Fix security prompt for downloading remote resource
authorIhor Radchenko <yantar92@posteo.net>
Fri, 2 Feb 2024 19:59:41 +0000 (20:59 +0100)
committerEli Zaretskii <eliz@gnu.org>
Sat, 17 Feb 2024 17:31:28 +0000 (19:31 +0200)
* 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
lisp/org/org.el

index 3075729d01d4b03c4df5b5783d1a286df37585c7..c75afbf5a67ca6c816d49a999aec9bb8a972b600 100644 (file)
@@ -4685,7 +4685,7 @@ returns non-nil if any of them match."
                               (if (and (= char ?f) current-file)
                                   (concat "file://" current-file) uri))
                              "\\'")))))
-          (prog1 (memq char '(?y ?n ?! ?d ?\s ?f))
+          (prog1 (memq char '(?y ?! ?d ?\s ?f))
             (quit-window t)))))))
 
 (defun org-extract-log-state-settings (x)