From: Paul Hänsch Date: Tue, 17 May 2022 12:15:06 +0000 (+0200) Subject: fallback handler for regular page names containing brackets X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=d801cc152985e1639dd009e7a654e5f933766fe3;p=shellwiki fallback handler for regular page names containing brackets --- diff --git a/handlers/90_brackets.sh b/handlers/90_brackets.sh new file mode 100755 index 0000000..b6b2538 --- /dev/null +++ b/handlers/90_brackets.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +# spacial case for bracket pages that are not handled otherwise +# attachment and edit (and really all) handlers should take precedence + +case "${PATH_INFO}" in + */\[*\]/*) + theme_page "${PATH_INFO}" + return 0 + ;; +esac + +return 1