]> git.plutz.net Git - shellwiki/blobdiff - handlers/10_page.sh
avoid mishandling of pages (wrong 404 in particular)
[shellwiki] / handlers / 10_page.sh
index 99b79a43e8c70c5beabbf4b6d38882d96378aac7..edb849ab24acb12b7ea644c8572768be404535f6 100755 (executable)
@@ -36,6 +36,8 @@ wiki() {
 
 case "${PATH_INFO}" in
   /"[.]"/*)
+    # usually some file related to theme
+    # let file server handle errors
     FILE "${_EXEC}/${PATH_INFO#/\[.\]}"
     return 0
     ;;
@@ -49,7 +51,8 @@ case "${PATH_INFO}" in
     theme_error 400
     return 0
     ;;
-  */\[*\]/*)
+  */\[*\]/*|*/\[*\])
+    # looks like some kind of handler
     return 1
     ;;
   */)