From c8859c13ff211e074f25b618bf4ddd841baacd6e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Thu, 12 May 2022 12:21:32 +0200 Subject: [PATCH] fix accidental mishandling --- handlers/10_page.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 -- 2.39.2