From: Ihor Radchenko Date: Fri, 2 Feb 2024 19:59:41 +0000 (+0100) Subject: org: Fix security prompt for downloading remote resource X-Git-Tag: archive/raspbian/1%29.4+1-4+rpi1~1^2~2^2~18^2~51 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=e56f0ef51bfdd0e03e817670754bc813fb3702a2;p=emacs.git 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 Link: https://orgmode.org/list/upj6uk$b7o$1@ciao.gmane.io --- 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." (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)