From 7869c996fdf354957769380076ffe9bf4a6ceeea Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Sun, 3 Sep 2023 15:16:37 +0200 Subject: [PATCH] escape gallery URLs --- macros/gallery | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/macros/gallery b/macros/gallery index ebaeb84..edc6a39 100755 --- a/macros/gallery +++ b/macros/gallery @@ -33,12 +33,14 @@ done \ | while read attachment; do case $attachment in */*) - printf '' \ - "${attachment%/*}/[attachment]/${attachment##*/}" "${attachment}" + printf '' \ + "$(URL "${attachment%/*}/[attachment]/${attachment##*/}")" \ + "$(URL "${attachment}")" ;; *) - printf '' \ - "[attachment]/${attachment}" "${attachment}" + printf '' \ + "$(URL "[attachment]/${attachment}")" \ + "$(URL "${attachment}")" ;; esac done -- 2.39.2