From 27c2a1df69001f979ad9ed5ffbac06fc106b9e30 Mon Sep 17 00:00:00 2001 From: winter Date: Thu, 6 Feb 2025 20:54:52 +0000 Subject: allow writing alt text on image attachments --- templates/note.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'templates/note.php') diff --git a/templates/note.php b/templates/note.php index f9eef45..b43e63e 100644 --- a/templates/note.php +++ b/templates/note.php @@ -79,12 +79,12 @@ if ($user != null) { attachments as $attachment): ?>
type, 'image/')): ?> - <?= $attachment->description ?? '' ?> + <?= htmlspecialchars($attachment->description ?? '') ?> - description ?? basename($attachment->href) ?> + description ?? basename($attachment->href)) ?>
-- cgit v1.3