From: Paul Hänsch Date: Thu, 14 Apr 2022 13:15:27 +0000 (+0200) Subject: multipart test stub X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=9169267348bbe4cfc7923ca0d535d4eba89a734e;p=shellwiki multipart test stub --- diff --git a/attachment.sh b/attachment.sh index b5e8491..d004b0d 100755 --- a/attachment.sh +++ b/attachment.sh @@ -61,7 +61,14 @@ attachment_convert(){ } if [ "${PATH_INFO%/\[attachment\]/}" != "${PATH_INFO}" ]; then - theme_attachments "${PATH_INFO%\[attachment\]/}" + . "$_EXEC/multipart.sh" + if multipart_cache; then + debug 'Multipart "file":' + multipart file |hd |debug >/dev/null + REDIRECT "${_BASE}${PATH_INFO}" + else + theme_attachments "${PATH_INFO%\[attachment\]/}" + fi elif [ "${PATH_INFO%/\[attachment\]/*}" != "${PATH_INFO}" ]; then attpath="${PATH_INFO%/\[attachment\]/*}/#attachments/${PATH_INFO##*/}"