]> git.plutz.net Git - shellwiki/blobdiff - index.cgi
error pages 409 and 500
[shellwiki] / index.cgi
index 90f7d776bf4540a219aa016c2d2f37c77a918c97..465a98994140c6b1919090333297ca10e0320eca 100755 (executable)
--- 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"