]> git.plutz.net Git - shellwiki/commitdiff
bugfix: variable name
authorPaul Hänsch <paul@plutz.net>
Wed, 25 May 2022 19:40:39 +0000 (21:40 +0200)
committerPaul Hänsch <paul@plutz.net>
Wed, 25 May 2022 19:40:39 +0000 (21:40 +0200)
handlers/10_page.sh

index edb849ab24acb12b7ea644c8572768be404535f6..87af6850279a517c957be9440221c8a0f4a4b8e2 100755 (executable)
@@ -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}"