X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;f=handlers%2F90_brackets.sh;h=f509294c69f470217dc7adc32a8d6844bc7da45e;hb=a6ae272ce0af6b93cabddf4aa4a3cebc7350f5a0;hp=b6b25383f32b4d58e000ac110e3cb0d0b45b64e5;hpb=36ff6ab5b2eee5d4cb9eb877729685d80b1378e9;p=shellwiki diff --git a/handlers/90_brackets.sh b/handlers/90_brackets.sh index b6b2538..f509294 100755 --- a/handlers/90_brackets.sh +++ b/handlers/90_brackets.sh @@ -5,7 +5,13 @@ case "${PATH_INFO}" in */\[*\]/*) - theme_page "${PATH_INFO}" + if [ ! "$(mdfile "${PATH_INFO}")" ]; then + theme_error 404 + elif ! acl_read "${PATH_INFO}"; then + theme_error 403 + else + theme_page "${PATH_INFO}" + fi return 0 ;; esac