From: Paul Hänsch Date: Sun, 3 Sep 2023 13:16:37 +0000 (+0200) Subject: escape gallery URLs X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=7869c996fdf354957769380076ffe9bf4a6ceeea;p=shellwiki escape gallery URLs --- 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