# attachment and edit (and really all) handlers should take precedence
case "${PATH_INFO}" in
+ */\[view\])
+ # explicit view handler for linking
+ 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