From 91b3b9ed78a3547147d29f1b37e6205ed2ff2048 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Thu, 19 May 2022 16:35:35 +0200 Subject: [PATCH] includes per handler --- handlers/20_attachment.sh | 2 ++ handlers/30_newpage.sh | 2 ++ 2 files changed, 4 insertions(+) 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;; -- 2.39.2