]> git.eshelyaron.com Git - emacs.git/commitdiff
org: Fix security prompt for downloading remote resource
authorIhor Radchenko <yantar92@posteo.net>
Fri, 2 Feb 2024 19:59:41 +0000 (20:59 +0100)
committerEshel Yaron <me@eshelyaron.com>
Wed, 28 Feb 2024 17:34:57 +0000 (18:34 +0100)
* 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
(cherry picked from commit e56f0ef51bfdd0e03e817670754bc813fb3702a2)

lisp/org/org.el

index 2c5de69a36c4aaf2865dd8011baeb4ad6b4a2cc9..d361408eacaaa921ec21f8919ca88e8e2ee0c137 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)