X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;f=handlers%2F10_page.sh;h=b34aa1b21dac7fc054261ebb566fa4ed4d00fbf4;hb=bba1d35607b3ac76b36591d427caa0684ad54bb8;hp=e010ab12c4e7bc7d797c3a9fe81c706d664a2f74;hpb=b86e88d2d6acd3eda7d9858539818a290db67d41;p=shellwiki diff --git a/handlers/10_page.sh b/handlers/10_page.sh index e010ab1..b34aa1b 100755 --- a/handlers/10_page.sh +++ b/handlers/10_page.sh @@ -48,25 +48,13 @@ 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 ;; - */"[login]") - theme_page "/[wiki]/login/" - return 0 - ;; - */"[register]") - theme_page "/[wiki]/register/" - return 0 - ;; - */"[invite]") - theme_page "/[wiki]/invite/" - return 0 + */\[*\]/*) + return 1 ;; */) theme_page "${PATH_INFO}"