[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/hyperdrive-org-transclusion 7e184311b0 32/38: Security: On
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/hyperdrive-org-transclusion 7e184311b0 32/38: Security: Only transclude content from safe hyperdrives |
Date: |
Mon, 23 Sep 2024 04:01:33 -0400 (EDT) |
branch: elpa/hyperdrive-org-transclusion
commit 7e184311b0a31376a28c1aa2926a473bae2cc298
Author: Joseph Turner <joseph@ushin.org>
Commit: Joseph Turner <joseph@ushin.org>
Security: Only transclude content from safe hyperdrives
---
hyperdrive-org-transclusion.el | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/hyperdrive-org-transclusion.el b/hyperdrive-org-transclusion.el
index d312ae274c..902d262fbb 100644
--- a/hyperdrive-org-transclusion.el
+++ b/hyperdrive-org-transclusion.el
@@ -80,6 +80,18 @@ PLIST, COPY."
((cl-struct hyperdrive-entry hyperdrive path etc) entry)
((map target) etc)
(tc-type))
+ (when (eq 'unknown (hyperdrive-safe-p hyperdrive))
+ (let ((hyperdrive-current-entry
+ (hyperdrive-entry-create :hyperdrive hyperdrive)))
+ (call-interactively #'hyperdrive-mark-as-safe)))
+ ;; Check safe-p again after potential call to `hyperdrive-mark-as-safe'.
+ (unless (eq t (hyperdrive-safe-p hyperdrive))
+ (user-error
+ (substitute-command-keys
+ "hyperdrive-org-transclusion: Refused to transclude hyperdrive
content not marked as safe:
+<%s>
+Try \\[hyperdrive-mark-as-safe]")
+ raw-link))
(when (hyperdrive--entry-directory-p entry)
(user-error "hyperdrive-org-transclusion: Directory transclusion not
supported: <%s>"
raw-link))
- [nongnu] elpa/hyperdrive-org-transclusion 6e6f3f287a 03/38: Tidy: Rename h/org-transclusion-add, (continued)
- [nongnu] elpa/hyperdrive-org-transclusion 6e6f3f287a 03/38: Tidy: Rename h/org-transclusion-add, ELPA Syncer, 2024/09/23
- [nongnu] elpa/hyperdrive-org-transclusion 0be5945db0 09/38: Meta: Add to dictionary, ELPA Syncer, 2024/09/23
- [nongnu] elpa/hyperdrive-org-transclusion 392c7c660b 08/38: Meta: Update copyright notice, ELPA Syncer, 2024/09/23
- [nongnu] elpa/hyperdrive-org-transclusion 8fe2b9865a 12/38: Fix: Compiler warning, ELPA Syncer, 2024/09/23
- [nongnu] elpa/hyperdrive-org-transclusion 1cad273549 19/38: Meta: Fix CONTRIBUTING, ELPA Syncer, 2024/09/23
- [nongnu] elpa/hyperdrive-org-transclusion 71534426c3 20/38: Fix .gitignore, ELPA Syncer, 2024/09/23
- [nongnu] elpa/hyperdrive-org-transclusion 061e9d13b0 22/38: Meta: Export only README body to HTML, ELPA Syncer, 2024/09/23
- [nongnu] elpa/hyperdrive-org-transclusion 472e6ba639 23/38: Meta: Fix README.org formatting, ELPA Syncer, 2024/09/23
- [nongnu] elpa/hyperdrive-org-transclusion 9230880136 27/38: Fix: (hyperdrive-org-transclusion-add-file) Print error with prin1, ELPA Syncer, 2024/09/23
- [nongnu] elpa/hyperdrive-org-transclusion b54cd7c5a8 29/38: Change: (hyperdrive-org-transclusion-add-file) Use he/api, ELPA Syncer, 2024/09/23
- [nongnu] elpa/hyperdrive-org-transclusion 7e184311b0 32/38: Security: Only transclude content from safe hyperdrives,
ELPA Syncer <=
- [nongnu] elpa/hyperdrive-org-transclusion 329712316e 31/38: Test: Transclude non-Org, non-HTML hyperdrive content, ELPA Syncer, 2024/09/23
- [nongnu] elpa/hyperdrive-org-transclusion ec79bfa516 33/38: Comment: Update old reference to hyperdrive.el API, ELPA Syncer, 2024/09/23
- [nongnu] elpa/hyperdrive-org-transclusion edf3595dc2 37/38: Meta: v0.2-pre, ELPA Syncer, 2024/09/23
- [nongnu] elpa/hyperdrive-org-transclusion de910354b3 17/38: Meta: Fix package headers, ELPA Syncer, 2024/09/23
- [nongnu] elpa/hyperdrive-org-transclusion 3368a5b8c1 13/38: WIP, ELPA Syncer, 2024/09/23
- [nongnu] elpa/hyperdrive-org-transclusion 53ac71e8be 26/38: Tidy: Indentation, ELPA Syncer, 2024/09/23
- [nongnu] elpa/hyperdrive-org-transclusion 96eb5b8092 36/38: Release: v0.1, ELPA Syncer, 2024/09/23
- [nongnu] elpa/hyperdrive-org-transclusion 0e08efcdd4 38/38: Meta: (CHANGELOG) Comment out notes, ELPA Syncer, 2024/09/23
- [nongnu] elpa/hyperdrive-org-transclusion bf6cd1a3cc 24/38: Meta: Fix package header, ELPA Syncer, 2024/09/23
- [nongnu] elpa/hyperdrive-org-transclusion 736ac546ef 34/38: Meta: Bump hyperdrive.el dependency to v0.4.1, ELPA Syncer, 2024/09/23