From: Paul Hänsch Date: Thu, 19 May 2022 14:35:35 +0000 (+0200) Subject: includes per handler X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=91b3b9ed78a3547147d29f1b37e6205ed2ff2048;p=shellwiki includes per handler --- diff --git a/handlers/20_attachment.sh b/handlers/20_attachment.sh index 1cf4c53..983cc7e 100755 --- a/handlers/20_attachment.sh +++ b/handlers/20_attachment.sh @@ -1,5 +1,7 @@ #!/bin/sh +. "$_EXEC/cgilite/file.sh" + attachment_convert(){ local attpath="$1" local cachepath="${attpath%/#attachments/*}/#cache/${attpath#*/#attachments/}" diff --git a/handlers/30_newpage.sh b/handlers/30_newpage.sh index ad9f7eb..f3cbde7 100755 --- a/handlers/30_newpage.sh +++ b/handlers/30_newpage.sh @@ -1,5 +1,7 @@ #!/bin/sh +. "$_EXEC/session_lock.sh" + case $PATH_INFO in */\[newpage\]):;; *) return 1;;