X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;f=handlers%2F10_page.sh;h=87af6850279a517c957be9440221c8a0f4a4b8e2;hb=4127aab371b6c3e4bec81a94afcadc19e9724237;hp=edb849ab24acb12b7ea644c8572768be404535f6;hpb=818bd92b936bf3c66a4be47481be3c1fdf244523;p=shellwiki diff --git a/handlers/10_page.sh b/handlers/10_page.sh index edb849a..87af685 100755 --- a/handlers/10_page.sh +++ b/handlers/10_page.sh @@ -56,9 +56,9 @@ case "${PATH_INFO}" in return 1 ;; */) - if [ ! "$(mdfile "$page")" ]; then + if [ ! "$(mdfile "$PATH_INFO")" ]; then theme_error 404 - elif ! acl_read "$page"; then + elif ! acl_read "$PATH_INFO"; then theme_error 403 else theme_page "${PATH_INFO}"