X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;f=handlers%2F20_page.sh;h=eb894c2cda080d8b5a9c8819a86c91eea510df0f;hb=d2712691270f3b0a4a9829e8a0b4e36703929857;hp=87af6850279a517c957be9440221c8a0f4a4b8e2;hpb=c2d4d148a5155b27e7573462b12476df231e23f9;p=shellwiki diff --git a/handlers/20_page.sh b/handlers/20_page.sh index 87af685..eb894c2 100755 --- a/handlers/20_page.sh +++ b/handlers/20_page.sh @@ -56,7 +56,7 @@ case "${PATH_INFO}" in return 1 ;; */) - if [ ! "$(mdfile "$PATH_INFO")" ]; then + if ! mdfile "$PATH_INFO" >&-; then theme_error 404 elif ! acl_read "$PATH_INFO"; then theme_error 403