X-Git-Url: http://git.plutz.net/?a=blobdiff_plain;f=handlers%2F90_brackets.sh;h=ce49b0e9a36fd9456d74d99950da40609f5d5a1d;hb=01767994524bd3fab0e1680403bde4240732449d;hp=1f11cf4448697124a7b4fdfe08a2f64cc42aecae;hpb=bce9d6ebc7a5cd73c43d5a92c79dcbbbd3d3aa04;p=shellwiki diff --git a/handlers/90_brackets.sh b/handlers/90_brackets.sh index 1f11cf4..ce49b0e 100755 --- a/handlers/90_brackets.sh +++ b/handlers/90_brackets.sh @@ -11,7 +11,7 @@ case "${PATH_INFO}" in REDIRECT "${_BASE}${PATH_INFO%\[view\]}" ;; */) - if [ ! "$(mdfile "${PATH_INFO}")" ]; then + if ! mdfile "${PATH_INFO}" >&-; then theme_error 404 elif ! acl_read "${PATH_INFO}"; then theme_error 403