From: Paul Hänsch Date: Thu, 12 May 2022 10:21:32 +0000 (+0200) Subject: fix accidental mishandling X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=c8859c13ff211e074f25b618bf4ddd841baacd6e;p=shellwiki fix accidental mishandling --- diff --git a/handlers/10_page.sh b/handlers/10_page.sh index e010ab1..70e70e7 100755 --- a/handlers/10_page.sh +++ b/handlers/10_page.sh @@ -48,14 +48,14 @@ case "${PATH_INFO}" in FILE "${_EXEC}/${PATH_INFO#/\[.\]}" return 0 ;; - */\[*\]/*/) - return 1 - ;; - */"#"*/*) - export ERROR_MSG="This page name is not allowed" + */\#*) + export ERROR_MSG='Page names starting with "#" are not allowed' theme_error 400 return 0 ;; + */\[*\]/*) + return 1 + ;; */"[login]") theme_page "/[wiki]/login/" return 0