X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;f=index.cgi;h=465a98994140c6b1919090333297ca10e0320eca;hb=4d35c26aaac2a8738a8831118671d7a70dca827c;hp=90f7d776bf4540a219aa016c2d2f37c77a918c97;hpb=ea958d314bc1ca006af61d0c67c4a48c7a42b15f;p=shellwiki diff --git a/index.cgi b/index.cgi index 90f7d77..465a989 100755 --- a/index.cgi +++ b/index.cgi @@ -74,23 +74,20 @@ case "${PATH_INFO}" in /"[.]"/*) FILE "${_EXEC}/${PATH_INFO#/\[.\]}" ;; - */\[*\]/) :;; - */) + /|*[^]]/) theme_page "${PATH_INFO}" - exit 0 ;; */"[login]") theme_login - exit 0 ;; */"[register]") theme_register - exit 0 ;; */"#"*) : # TODO: Invalid page name ;; + *) + . "$_EXEC/page_edit.sh" + . "$_EXEC/attachment.sh" esac -. "$_EXEC/page_edit.sh" -. "$_EXEC/attachment.sh"