X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;f=attachment.sh;h=d004b0db549954f00575810169f6a6665c9357e3;hb=e52003a2f0aecacd91af213b8f5b777022d3a104;hp=b5e8491298ed398a3e7e733d37ef109c74b10405;hpb=cb3cd16be2190c7e91aa1dafd22b295b641c0d32;p=shellwiki 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##*/}"