/"[.]"/*)
FILE "${_EXEC}/${PATH_INFO#/\[.\]}"
;;
+ */"#"*/*)
+ export ERROR_MSG="This page name is not allowed"
+ theme_400
+ ;;
/|*[^]]/)
theme_page "${PATH_INFO}"
;;
*/"[login]")
- theme_login
+ theme_page "/[wiki]/login/"
;;
*/"[register]")
- theme_register
+ theme_page "/[wiki]/register/"
;;
- */"#"*)
- : # TODO: Invalid page name
+ */"[invite]")
+ theme_page "/[wiki]/invite/"
;;
*)
- . "$_EXEC/page_edit.sh"
- . "$_EXEC/attachment.sh"
+ . "$_EXEC/page_edit.sh" \
+ || . "$_EXEC/attachment.sh" \
+ || theme_404
+ ;;
esac